06:38:32.247 [Test worker] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
06:38:32.277 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
06:38:32.288 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
06:38:32.288 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
06:38:32.288 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
06:38:32.296 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
06:38:32.297 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
06:38:32.297 [Test worker] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
06:38:32.297 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
06:38:32.307 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable
06:38:32.307 [Test worker] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance.
06:38:32.307 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
06:38:32.308 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
06:38:32.308 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
06:38:33.946 [Test worker] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
06:38:34.057 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
06:38:34.063 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
06:38:34.526 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 16
06:38:34.526 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 16
06:38:34.526 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
06:38:34.526 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
06:38:34.527 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
06:38:34.527 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
06:38:34.527 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
06:38:34.530 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
06:38:34.531 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
06:38:34.532 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
06:38:34.691 [MockServer thread for port: 35591] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0x58498bcfed0bafeb (took 16 ms)
06:38:34.833 [MockServer thread for port: 35591] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled
06:38:34.834 [MockServer thread for port: 35591] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
06:38:34.835 [MockServer thread for port: 35591] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
06:38:34.846 [MockServer thread for port: 35591] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
06:38:34.852 [MockServer thread for port: 35591] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
06:38:34.900 [MockServer thread for port: 35591] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35591
06:38:35.558 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:35.626 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found on classpath using path [mockserver.properties]
06:38:35.626 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found using path [mockserver.properties]
06:38:35.700 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true
06:38:35.704 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
06:38:35.704 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4
06:38:35.823 [nioEventLoopGroup-4-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144
06:38:36.397 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:36.744 [nioEventLoopGroup-3-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:36.745 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:36.746 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 => /127.0.0.1:35591] FLUSH
06:38:36.752 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 => /127.0.0.1:35591] FLUSH
06:38:36.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:36.770 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 :> /127.0.0.1:35591] INACTIVE
06:38:36.770 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcfbf45c, /127.0.0.1:35520 :> /127.0.0.1:35591] UNREGISTERED
06:38:36.812 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-4-1
06:38:36.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:36.913 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:36.938 [nioEventLoopGroup-3-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:36.945 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:36.947 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 => /127.0.0.1:35591] FLUSH
06:38:36.948 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:36.950 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 => /127.0.0.1:35591] FLUSH
06:38:36.950 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 :> /127.0.0.1:35591] INACTIVE
06:38:36.951 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc07cc071, /127.0.0.1:35576 :> /127.0.0.1:35591] UNREGISTERED
06:38:36.977 [nioEventLoopGroup-6-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-6-1
06:38:37.004 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.049 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.058 [nioEventLoopGroup-3-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:37.068 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.068 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 => /127.0.0.1:35591] FLUSH
06:38:37.071 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.078 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 => /127.0.0.1:35591] FLUSH
06:38:37.079 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 :> /127.0.0.1:35591] INACTIVE
06:38:37.079 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea7e64c5, /127.0.0.1:35588 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.080 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.089 [nioEventLoopGroup-7-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-7-1
06:38:37.121 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.127 [nioEventLoopGroup-3-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:37.129 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.130 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 => /127.0.0.1:35591] FLUSH
06:38:37.132 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.134 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 => /127.0.0.1:35591] FLUSH
06:38:37.135 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 :> /127.0.0.1:35591] INACTIVE
06:38:37.135 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe89332d1, /127.0.0.1:35598 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.160 [nioEventLoopGroup-8-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-8-1
06:38:37.207 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.239 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.247 [nioEventLoopGroup-3-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:37.255 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.255 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 => /127.0.0.1:35591] FLUSH
06:38:37.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.257 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 => /127.0.0.1:35591] FLUSH
06:38:37.257 [nioEventLoopGroup-9-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-9-1
06:38:37.257 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 :> /127.0.0.1:35591] INACTIVE
06:38:37.257 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04187330, /127.0.0.1:35610 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.330 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.343 [nioEventLoopGroup-3-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:37.347 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.348 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 => /127.0.0.1:35591] FLUSH
06:38:37.350 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.351 [nioEventLoopGroup-10-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-10-1
06:38:37.352 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 => /127.0.0.1:35591] FLUSH
06:38:37.352 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 :> /127.0.0.1:35591] INACTIVE
06:38:37.353 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83bdbe31, /127.0.0.1:35618 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.376 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.410 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.416 [nioEventLoopGroup-3-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:37.417 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.417 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 => /127.0.0.1:35591] FLUSH
06:38:37.418 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 => /127.0.0.1:35591] FLUSH
06:38:37.418 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.419 [nioEventLoopGroup-11-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-11-1
06:38:37.420 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 :> /127.0.0.1:35591] INACTIVE
06:38:37.421 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc29bc1f, /127.0.0.1:35624 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.482 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.484 [nioEventLoopGroup-3-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:37.485 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.485 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 => /127.0.0.1:35591] FLUSH
06:38:37.487 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 => /127.0.0.1:35591] FLUSH
06:38:37.487 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 :> /127.0.0.1:35591] INACTIVE
06:38:37.488 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x479c2766, /127.0.0.1:35632 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.492 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.493 [nioEventLoopGroup-12-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-12-1
06:38:37.495 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.509 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.511 [nioEventLoopGroup-3-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:37.513 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.517 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 => /127.0.0.1:35591] FLUSH
06:38:37.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.521 [nioEventLoopGroup-13-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-13-1
06:38:37.522 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 => /127.0.0.1:35591] FLUSH
06:38:37.522 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 :> /127.0.0.1:35591] INACTIVE
06:38:37.523 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0e1cdbf, /127.0.0.1:35634 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.530 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.539 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.541 [nioEventLoopGroup-3-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:37.544 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.546 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 => /127.0.0.1:35591] FLUSH
06:38:37.550 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 => /127.0.0.1:35591] FLUSH
06:38:37.550 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.551 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 :> /127.0.0.1:35591] INACTIVE
06:38:37.551 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcac10303, /127.0.0.1:35642 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.551 [nioEventLoopGroup-14-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-14-1
06:38:37.555 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.574 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.590 [nioEventLoopGroup-3-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:37.595 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.596 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 => /127.0.0.1:35591] FLUSH
06:38:37.598 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 => /127.0.0.1:35591] FLUSH
06:38:37.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.598 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 :> /127.0.0.1:35591] INACTIVE
06:38:37.598 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb81ccf5c, /127.0.0.1:35648 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.599 [nioEventLoopGroup-15-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-15-1
06:38:37.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.637 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.642 [nioEventLoopGroup-3-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:37.644 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.645 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 => /127.0.0.1:35591] FLUSH
06:38:37.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.648 [nioEventLoopGroup-16-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-16-1
06:38:37.649 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 => /127.0.0.1:35591] FLUSH
06:38:37.649 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 :> /127.0.0.1:35591] INACTIVE
06:38:37.649 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c3cebea, /127.0.0.1:35652 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:37.743 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 => /127.0.0.1:35591] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:37.746 [nioEventLoopGroup-3-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:37.750 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:37.751 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 => /127.0.0.1:35591] FLUSH
06:38:37.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:37.752 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 => /127.0.0.1:35591] FLUSH
06:38:37.752 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 :> /127.0.0.1:35591] INACTIVE
06:38:37.753 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1eac16, /127.0.0.1:35666 :> /127.0.0.1:35591] UNREGISTERED
06:38:37.757 [nioEventLoopGroup-17-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-17-1
06:38:40.444 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8e0f26, /127.0.0.1:35922 => /127.0.0.1:35591] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:35591
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:40.452 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.462 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.463 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:40.471 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.481 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.486 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.493 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:40.497 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:40.500 [nioEventLoopGroup-3-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:40.504 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8e0f26, /127.0.0.1:35922 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:40.505 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8e0f26, /127.0.0.1:35922 => /127.0.0.1:35591] FLUSH
06:38:41.069 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc9b4d5, /127.0.0.1:35996 => /127.0.0.1:35591] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:35591
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:41.073 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.074 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.076 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:41.077 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.087 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.089 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.095 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.097 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:41.098 [nioEventLoopGroup-3-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35591" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:41.098 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc9b4d5, /127.0.0.1:35996 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:41.098 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc9b4d5, /127.0.0.1:35996 => /127.0.0.1:35591] FLUSH
06:38:41.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:41.176 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 => /127.0.0.1:35591] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35591
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:41.188 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 => /127.0.0.1:35591] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.188 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 => /127.0.0.1:35591] FLUSH
06:38:41.189 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.191 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 => /127.0.0.1:35591] CLOSE()
06:38:41.224 [nioEventLoopGroup-18-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-18-1
06:38:41.265 [nioEventLoopGroup-3-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-2
06:38:41.265 [nioEventLoopGroup-3-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-1
06:38:41.265 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc9b4d5, /127.0.0.1:35996 :> /127.0.0.1:35591] INACTIVE
06:38:41.265 [nioEventLoopGroup-3-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-3
06:38:41.265 [nioEventLoopGroup-3-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-8
06:38:41.265 [nioEventLoopGroup-3-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-4
06:38:41.266 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8e0f26, /127.0.0.1:35922 :> /127.0.0.1:35591] INACTIVE
06:38:41.273 [nioEventLoopGroup-3-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-9
06:38:41.273 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc9b4d5, /127.0.0.1:35996 :> /127.0.0.1:35591] UNREGISTERED
06:38:41.274 [nioEventLoopGroup-3-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-10
06:38:41.274 [nioEventLoopGroup-3-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-11
06:38:41.274 [nioEventLoopGroup-3-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-12
06:38:41.274 [nioEventLoopGroup-3-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-13
06:38:41.274 [nioEventLoopGroup-3-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-6
06:38:41.274 [nioEventLoopGroup-3-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-7
06:38:41.274 [nioEventLoopGroup-3-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-5
06:38:41.274 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8e0f26, /127.0.0.1:35922 :> /127.0.0.1:35591] UNREGISTERED
06:38:41.583 [MockServer thread for port: 34941] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34941
06:38:41.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.587 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.589 [nioEventLoopGroup-20-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:41.589 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.590 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 => /127.0.0.1:34941] FLUSH
06:38:41.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.591 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 => /127.0.0.1:34941] FLUSH
06:38:41.592 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 :> /127.0.0.1:34941] INACTIVE
06:38:41.592 [nioEventLoopGroup-21-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-21-1
06:38:41.592 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc571d17, /127.0.0.1:41636 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.597 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.600 [nioEventLoopGroup-20-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:41.600 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.600 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 => /127.0.0.1:34941] FLUSH
06:38:41.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.601 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 => /127.0.0.1:34941] FLUSH
06:38:41.601 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 :> /127.0.0.1:34941] INACTIVE
06:38:41.601 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6ec2017, /127.0.0.1:41640 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.601 [nioEventLoopGroup-22-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-22-1
06:38:41.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.612 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.621 [nioEventLoopGroup-20-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:41.621 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.622 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 => /127.0.0.1:34941] FLUSH
06:38:41.623 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 => /127.0.0.1:34941] FLUSH
06:38:41.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.626 [nioEventLoopGroup-23-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-23-1
06:38:41.627 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 :> /127.0.0.1:34941] INACTIVE
06:38:41.627 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa984fe09, /127.0.0.1:41644 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.642 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.646 [nioEventLoopGroup-20-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:41.646 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.647 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 => /127.0.0.1:34941] FLUSH
06:38:41.648 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 => /127.0.0.1:34941] FLUSH
06:38:41.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.648 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 :> /127.0.0.1:34941] INACTIVE
06:38:41.648 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80482c70, /127.0.0.1:41654 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.648 [nioEventLoopGroup-24-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-24-1
06:38:41.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.664 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.667 [nioEventLoopGroup-20-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:41.668 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.668 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 => /127.0.0.1:34941] FLUSH
06:38:41.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.670 [nioEventLoopGroup-25-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-25-1
06:38:41.670 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 => /127.0.0.1:34941] FLUSH
06:38:41.671 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 :> /127.0.0.1:34941] INACTIVE
06:38:41.671 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b11519b, /127.0.0.1:41658 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.675 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.694 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.696 [nioEventLoopGroup-20-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:41.697 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.697 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 => /127.0.0.1:34941] FLUSH
06:38:41.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.698 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 => /127.0.0.1:34941] FLUSH
06:38:41.698 [nioEventLoopGroup-26-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-26-1
06:38:41.698 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 :> /127.0.0.1:34941] INACTIVE
06:38:41.699 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.702 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceb2c50c, /127.0.0.1:41666 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.706 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.709 [nioEventLoopGroup-20-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:41.710 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.710 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 => /127.0.0.1:34941] FLUSH
06:38:41.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.720 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 => /127.0.0.1:34941] FLUSH
06:38:41.720 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 :> /127.0.0.1:34941] INACTIVE
06:38:41.720 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3d2e885, /127.0.0.1:41670 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.721 [nioEventLoopGroup-27-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-27-1
06:38:41.751 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.764 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.765 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 :> /127.0.0.1:35591] FLUSH
06:38:41.765 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 :> /127.0.0.1:35591] INACTIVE
06:38:41.765 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12dc20f8, /127.0.0.1:36010 :> /127.0.0.1:35591] UNREGISTERED
06:38:41.766 [nioEventLoopGroup-3-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-16
06:38:41.767 [nioEventLoopGroup-20-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:41.769 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.770 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 => /127.0.0.1:34941] FLUSH
06:38:41.771 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.772 [nioEventLoopGroup-28-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-28-1
06:38:41.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.774 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 => /127.0.0.1:34941] FLUSH
06:38:41.775 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 :> /127.0.0.1:34941] INACTIVE
06:38:41.775 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78c4bad, /127.0.0.1:41684 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.797 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.800 [nioEventLoopGroup-20-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:41.801 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.802 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 => /127.0.0.1:34941] FLUSH
06:38:41.803 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.805 [nioEventLoopGroup-29-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-29-1
06:38:41.807 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 => /127.0.0.1:34941] FLUSH
06:38:41.807 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.817 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 :> /127.0.0.1:34941] INACTIVE
06:38:41.817 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e3ce280, /127.0.0.1:41692 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.824 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.825 [nioEventLoopGroup-20-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:41.826 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.826 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 => /127.0.0.1:34941] FLUSH
06:38:41.827 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.827 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 => /127.0.0.1:34941] FLUSH
06:38:41.827 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 :> /127.0.0.1:34941] INACTIVE
06:38:41.827 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebf76db, /127.0.0.1:41704 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.831 [nioEventLoopGroup-30-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-30-1
06:38:41.860 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.875 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.881 [nioEventLoopGroup-20-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:41.883 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.883 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 => /127.0.0.1:34941] FLUSH
06:38:41.884 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.885 [nioEventLoopGroup-31-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-31-1
06:38:41.885 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 => /127.0.0.1:34941] FLUSH
06:38:41.885 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 :> /127.0.0.1:34941] INACTIVE
06:38:41.885 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ae6f7e6, /127.0.0.1:41714 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.886 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.895 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.908 [nioEventLoopGroup-20-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:41.911 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.912 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 => /127.0.0.1:34941] FLUSH
06:38:41.913 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.914 [nioEventLoopGroup-32-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-32-1
06:38:41.915 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:41.919 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 => /127.0.0.1:34941] FLUSH
06:38:41.919 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 :> /127.0.0.1:34941] INACTIVE
06:38:41.920 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd07ee2c, /127.0.0.1:41722 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.947 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 => /127.0.0.1:34941] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:41.951 [nioEventLoopGroup-20-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:41.952 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:41.953 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 => /127.0.0.1:34941] FLUSH
06:38:41.953 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:41.953 [nioEventLoopGroup-33-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-33-1
06:38:41.954 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 => /127.0.0.1:34941] FLUSH
06:38:41.955 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 :> /127.0.0.1:34941] INACTIVE
06:38:41.955 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1e3999, /127.0.0.1:41736 :> /127.0.0.1:34941] UNREGISTERED
06:38:41.967 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64fe6c5, /127.0.0.1:41742 => /127.0.0.1:34941] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:34941
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:41.974 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.994 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:41.997 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:42.000 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.005 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.007 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.007 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.009 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.015 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:42.017 [nioEventLoopGroup-20-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:42.019 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64fe6c5, /127.0.0.1:41742 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.019 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64fe6c5, /127.0.0.1:41742 => /127.0.0.1:34941] FLUSH
06:38:42.025 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ae76b24, /127.0.0.1:41754 => /127.0.0.1:34941] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:34941
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:42.026 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.026 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.029 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:42.032 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.033 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.034 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.034 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.035 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.036 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:42.037 [nioEventLoopGroup-20-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34941" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:42.037 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ae76b24, /127.0.0.1:41754 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.037 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ae76b24, /127.0.0.1:41754 => /127.0.0.1:34941] FLUSH
06:38:42.038 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:42.046 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 => /127.0.0.1:34941] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34941
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.047 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 => /127.0.0.1:34941] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.047 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 => /127.0.0.1:34941] FLUSH
06:38:42.047 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 => /127.0.0.1:34941] CLOSE()
06:38:42.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.049 [nioEventLoopGroup-34-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-34-1
06:38:42.055 [nioEventLoopGroup-20-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-3
06:38:42.055 [nioEventLoopGroup-20-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-11
06:38:42.055 [nioEventLoopGroup-20-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-5
06:38:42.055 [nioEventLoopGroup-20-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-10
06:38:42.055 [nioEventLoopGroup-20-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-8
06:38:42.055 [nioEventLoopGroup-20-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-12
06:38:42.055 [nioEventLoopGroup-20-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-13
06:38:42.055 [nioEventLoopGroup-20-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-4
06:38:42.055 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64fe6c5, /127.0.0.1:41742 :> /127.0.0.1:34941] INACTIVE
06:38:42.055 [nioEventLoopGroup-20-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-6
06:38:42.055 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ae76b24, /127.0.0.1:41754 :> /127.0.0.1:34941] INACTIVE
06:38:42.055 [nioEventLoopGroup-20-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-1
06:38:42.055 [nioEventLoopGroup-20-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-9
06:38:42.055 [nioEventLoopGroup-20-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-7
06:38:42.056 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64fe6c5, /127.0.0.1:41742 :> /127.0.0.1:34941] UNREGISTERED
06:38:42.056 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ae76b24, /127.0.0.1:41754 :> /127.0.0.1:34941] UNREGISTERED
06:38:42.057 [nioEventLoopGroup-20-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-2
06:38:42.277 [nioEventLoopGroup-3-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-15
06:38:42.277 [nioEventLoopGroup-3-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-14
06:38:42.406 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.408 [MockServer thread for port: 33081] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33081
06:38:42.413 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.415 [nioEventLoopGroup-36-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:42.416 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.417 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 => /127.0.0.1:33081] FLUSH
06:38:42.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.424 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 => /127.0.0.1:33081] FLUSH
06:38:42.424 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 :> /127.0.0.1:33081] INACTIVE
06:38:42.424 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b4033bd, /127.0.0.1:47790 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.426 [nioEventLoopGroup-37-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-37-1
06:38:42.428 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.446 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.448 [nioEventLoopGroup-36-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:42.449 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.449 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 => /127.0.0.1:33081] FLUSH
06:38:42.451 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 => /127.0.0.1:33081] FLUSH
06:38:42.451 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 :> /127.0.0.1:33081] INACTIVE
06:38:42.451 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc10424eb, /127.0.0.1:47794 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.451 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.452 [nioEventLoopGroup-38-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-38-1
06:38:42.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.478 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.481 [nioEventLoopGroup-36-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:42.482 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.483 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 => /127.0.0.1:33081] FLUSH
06:38:42.486 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.487 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 => /127.0.0.1:33081] FLUSH
06:38:42.487 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 :> /127.0.0.1:33081] INACTIVE
06:38:42.487 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9197e1, /127.0.0.1:47804 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.487 [nioEventLoopGroup-39-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-39-1
06:38:42.494 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.502 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.503 [nioEventLoopGroup-36-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:42.504 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.504 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 => /127.0.0.1:33081] FLUSH
06:38:42.505 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.505 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 => /127.0.0.1:33081] FLUSH
06:38:42.507 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 :> /127.0.0.1:33081] INACTIVE
06:38:42.507 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d7ccfb2, /127.0.0.1:47808 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.507 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.510 [nioEventLoopGroup-40-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-40-1
06:38:42.517 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.519 [nioEventLoopGroup-36-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:42.519 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.519 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 => /127.0.0.1:33081] FLUSH
06:38:42.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.520 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 => /127.0.0.1:33081] FLUSH
06:38:42.539 [nioEventLoopGroup-41-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-41-1
06:38:42.541 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.539 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 :> /127.0.0.1:33081] INACTIVE
06:38:42.547 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0af54169, /127.0.0.1:47814 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.548 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.550 [nioEventLoopGroup-36-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:42.551 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.551 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 => /127.0.0.1:33081] FLUSH
06:38:42.552 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.552 [nioEventLoopGroup-42-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-42-1
06:38:42.552 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 => /127.0.0.1:33081] FLUSH
06:38:42.553 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 :> /127.0.0.1:33081] INACTIVE
06:38:42.553 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71210b17, /127.0.0.1:47822 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.555 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 :> /127.0.0.1:34941] FLUSH
06:38:42.555 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 :> /127.0.0.1:34941] INACTIVE
06:38:42.555 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5ac8420, /127.0.0.1:41758 :> /127.0.0.1:34941] UNREGISTERED
06:38:42.555 [nioEventLoopGroup-20-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-16
06:38:42.562 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.568 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.570 [nioEventLoopGroup-36-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:42.570 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.570 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 => /127.0.0.1:33081] FLUSH
06:38:42.571 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 => /127.0.0.1:33081] FLUSH
06:38:42.571 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.571 [nioEventLoopGroup-43-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-43-1
06:38:42.572 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.573 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 :> /127.0.0.1:33081] INACTIVE
06:38:42.573 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4736049, /127.0.0.1:47830 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.576 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.577 [nioEventLoopGroup-36-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:42.578 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.578 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 => /127.0.0.1:33081] FLUSH
06:38:42.579 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.579 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 => /127.0.0.1:33081] FLUSH
06:38:42.579 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 :> /127.0.0.1:33081] INACTIVE
06:38:42.579 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6678ee6, /127.0.0.1:47834 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.580 [nioEventLoopGroup-44-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-44-1
06:38:42.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.585 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.586 [nioEventLoopGroup-36-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:42.586 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.586 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 => /127.0.0.1:33081] FLUSH
06:38:42.587 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 => /127.0.0.1:33081] FLUSH
06:38:42.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.587 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 :> /127.0.0.1:33081] INACTIVE
06:38:42.587 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6552cac9, /127.0.0.1:47836 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.587 [nioEventLoopGroup-45-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-45-1
06:38:42.588 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.590 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.591 [nioEventLoopGroup-36-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:42.591 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.592 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 => /127.0.0.1:33081] FLUSH
06:38:42.592 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 => /127.0.0.1:33081] FLUSH
06:38:42.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.592 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 :> /127.0.0.1:33081] INACTIVE
06:38:42.592 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2308b8f, /127.0.0.1:47838 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.592 [nioEventLoopGroup-46-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-46-1
06:38:42.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.596 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.597 [nioEventLoopGroup-36-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:42.597 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.597 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 => /127.0.0.1:33081] FLUSH
06:38:42.597 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 => /127.0.0.1:33081] FLUSH
06:38:42.597 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.598 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 :> /127.0.0.1:33081] INACTIVE
06:38:42.598 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ecb4777, /127.0.0.1:47840 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.598 [nioEventLoopGroup-47-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-47-1
06:38:42.599 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.601 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.602 [nioEventLoopGroup-36-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:42.603 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.603 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 => /127.0.0.1:33081] FLUSH
06:38:42.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.604 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 => /127.0.0.1:33081] FLUSH
06:38:42.604 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 :> /127.0.0.1:33081] INACTIVE
06:38:42.604 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b49873d, /127.0.0.1:47842 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.604 [nioEventLoopGroup-48-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-48-1
06:38:42.606 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:42.610 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 => /127.0.0.1:33081] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:42.612 [nioEventLoopGroup-36-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:42.612 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.612 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 => /127.0.0.1:33081] FLUSH
06:38:42.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.613 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 => /127.0.0.1:33081] FLUSH
06:38:42.613 [nioEventLoopGroup-49-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-49-1
06:38:42.615 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 :> /127.0.0.1:33081] INACTIVE
06:38:42.615 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb83e025e, /127.0.0.1:47846 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.624 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14a97827, /127.0.0.1:47852 => /127.0.0.1:33081] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:33081
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:42.624 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.625 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.625 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:42.626 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.634 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.634 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.635 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.635 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.635 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.636 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:42.637 [nioEventLoopGroup-36-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:42.637 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14a97827, /127.0.0.1:47852 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.637 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14a97827, /127.0.0.1:47852 => /127.0.0.1:33081] FLUSH
06:38:42.643 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda63a177, /127.0.0.1:47858 => /127.0.0.1:33081] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:33081
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:42.644 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.644 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.644 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:42.645 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.645 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.645 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.646 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.648 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.649 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:42.658 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:42.658 [nioEventLoopGroup-36-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33081" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:42.659 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda63a177, /127.0.0.1:47858 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.659 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda63a177, /127.0.0.1:47858 => /127.0.0.1:33081] FLUSH
06:38:42.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:42.662 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 => /127.0.0.1:33081] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33081
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:42.662 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 => /127.0.0.1:33081] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:42.662 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 => /127.0.0.1:33081] FLUSH
06:38:42.662 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 => /127.0.0.1:33081] CLOSE()
06:38:42.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:42.663 [nioEventLoopGroup-50-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-50-1
06:38:42.664 [nioEventLoopGroup-36-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-1
06:38:42.664 [nioEventLoopGroup-36-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-4
06:38:42.664 [nioEventLoopGroup-36-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-2
06:38:42.664 [nioEventLoopGroup-36-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-7
06:38:42.664 [nioEventLoopGroup-36-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-10
06:38:42.664 [nioEventLoopGroup-36-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-5
06:38:42.664 [nioEventLoopGroup-36-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-3
06:38:42.664 [nioEventLoopGroup-36-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-8
06:38:42.664 [nioEventLoopGroup-36-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-11
06:38:42.664 [nioEventLoopGroup-36-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-13
06:38:42.664 [nioEventLoopGroup-36-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-6
06:38:42.664 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14a97827, /127.0.0.1:47852 :> /127.0.0.1:33081] INACTIVE
06:38:42.664 [nioEventLoopGroup-36-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-12
06:38:42.664 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda63a177, /127.0.0.1:47858 :> /127.0.0.1:33081] INACTIVE
06:38:42.664 [nioEventLoopGroup-36-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-9
06:38:42.670 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14a97827, /127.0.0.1:47852 :> /127.0.0.1:33081] UNREGISTERED
06:38:42.670 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda63a177, /127.0.0.1:47858 :> /127.0.0.1:33081] UNREGISTERED
06:38:43.016 [MockServer thread for port: 44527] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44527
06:38:43.017 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.019 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.020 [nioEventLoopGroup-52-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.021 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.021 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 => /127.0.0.1:44527] FLUSH
06:38:43.021 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.021 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 => /127.0.0.1:44527] FLUSH
06:38:43.021 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 :> /127.0.0.1:44527] INACTIVE
06:38:43.021 [nioEventLoopGroup-53-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-53-1
06:38:43.022 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.023 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdf875fc, /127.0.0.1:33916 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.026 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.028 [nioEventLoopGroup-52-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:43.028 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.028 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 => /127.0.0.1:44527] FLUSH
06:38:43.028 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.028 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 => /127.0.0.1:44527] FLUSH
06:38:43.029 [nioEventLoopGroup-54-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-54-1
06:38:43.029 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 :> /127.0.0.1:44527] INACTIVE
06:38:43.029 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3da6d23, /127.0.0.1:33918 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.030 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.034 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.037 [nioEventLoopGroup-52-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:43.038 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.039 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 => /127.0.0.1:44527] FLUSH
06:38:43.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.040 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 => /127.0.0.1:44527] FLUSH
06:38:43.040 [nioEventLoopGroup-55-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-55-1
06:38:43.040 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 :> /127.0.0.1:44527] INACTIVE
06:38:43.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.041 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb68a5901, /127.0.0.1:33920 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.043 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.045 [nioEventLoopGroup-52-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.045 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.045 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 => /127.0.0.1:44527] FLUSH
06:38:43.046 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 => /127.0.0.1:44527] FLUSH
06:38:43.046 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.046 [nioEventLoopGroup-56-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-56-1
06:38:43.046 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 :> /127.0.0.1:44527] INACTIVE
06:38:43.046 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e4d16c4, /127.0.0.1:33922 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.053 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.054 [nioEventLoopGroup-52-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:43.054 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.054 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 => /127.0.0.1:44527] FLUSH
06:38:43.055 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.055 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 => /127.0.0.1:44527] FLUSH
06:38:43.055 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 :> /127.0.0.1:44527] INACTIVE
06:38:43.055 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ed8ed6, /127.0.0.1:33924 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.056 [nioEventLoopGroup-57-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-57-1
06:38:43.057 [nioEventLoopGroup-20-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-14
06:38:43.057 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.057 [nioEventLoopGroup-20-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-15
06:38:43.060 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.061 [nioEventLoopGroup-52-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:43.062 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.062 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 => /127.0.0.1:44527] FLUSH
06:38:43.062 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.062 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 => /127.0.0.1:44527] FLUSH
06:38:43.062 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 :> /127.0.0.1:44527] INACTIVE
06:38:43.063 [nioEventLoopGroup-58-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-58-1
06:38:43.063 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x496f38be, /127.0.0.1:33928 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.063 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.065 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.066 [nioEventLoopGroup-52-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:43.066 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.066 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 => /127.0.0.1:44527] FLUSH
06:38:43.067 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.067 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 => /127.0.0.1:44527] FLUSH
06:38:43.067 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 :> /127.0.0.1:44527] INACTIVE
06:38:43.067 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45e8ba04, /127.0.0.1:33930 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.067 [nioEventLoopGroup-59-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-59-1
06:38:43.072 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.077 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.078 [nioEventLoopGroup-52-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:43.078 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.078 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 => /127.0.0.1:44527] FLUSH
06:38:43.079 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 => /127.0.0.1:44527] FLUSH
06:38:43.079 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.079 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 :> /127.0.0.1:44527] INACTIVE
06:38:43.079 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d40491d, /127.0.0.1:33934 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.079 [nioEventLoopGroup-60-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-60-1
06:38:43.080 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.084 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.085 [nioEventLoopGroup-52-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:43.085 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.085 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 => /127.0.0.1:44527] FLUSH
06:38:43.087 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.087 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 => /127.0.0.1:44527] FLUSH
06:38:43.087 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 :> /127.0.0.1:44527] INACTIVE
06:38:43.087 [nioEventLoopGroup-61-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-61-1
06:38:43.087 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd892b69, /127.0.0.1:33938 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.093 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.093 [nioEventLoopGroup-52-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:43.094 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.094 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 => /127.0.0.1:44527] FLUSH
06:38:43.095 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 => /127.0.0.1:44527] FLUSH
06:38:43.094 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.095 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 :> /127.0.0.1:44527] INACTIVE
06:38:43.095 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9e49dca, /127.0.0.1:33944 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.095 [nioEventLoopGroup-62-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-62-1
06:38:43.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.099 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.100 [nioEventLoopGroup-52-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:43.100 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.100 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 => /127.0.0.1:44527] FLUSH
06:38:43.101 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.101 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 => /127.0.0.1:44527] FLUSH
06:38:43.101 [nioEventLoopGroup-63-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-63-1
06:38:43.101 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 :> /127.0.0.1:44527] INACTIVE
06:38:43.102 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d2c95c, /127.0.0.1:33948 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.107 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.108 [nioEventLoopGroup-52-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:43.108 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.108 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 => /127.0.0.1:44527] FLUSH
06:38:43.109 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.109 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 => /127.0.0.1:44527] FLUSH
06:38:43.110 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 :> /127.0.0.1:44527] INACTIVE
06:38:43.110 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7152a254, /127.0.0.1:33952 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.110 [nioEventLoopGroup-64-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-64-1
06:38:43.110 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.115 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 => /127.0.0.1:44527] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.116 [nioEventLoopGroup-52-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.117 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.117 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 => /127.0.0.1:44527] FLUSH
06:38:43.117 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.118 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 => /127.0.0.1:44527] FLUSH
06:38:43.118 [nioEventLoopGroup-65-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-65-1
06:38:43.118 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 :> /127.0.0.1:44527] INACTIVE
06:38:43.118 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6564c514, /127.0.0.1:33958 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.123 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c7725f2, /127.0.0.1:33962 => /127.0.0.1:44527] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44527
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:43.124 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.124 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.124 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:43.125 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.125 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.125 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.125 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.126 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.126 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.126 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.126 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:43.127 [nioEventLoopGroup-52-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:43.127 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c7725f2, /127.0.0.1:33962 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.127 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c7725f2, /127.0.0.1:33962 => /127.0.0.1:44527] FLUSH
06:38:43.133 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e9c24a, /127.0.0.1:33964 => /127.0.0.1:44527] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44527
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:43.133 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.133 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.133 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:43.134 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.134 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.134 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.134 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.135 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.135 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.135 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.135 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:43.137 [nioEventLoopGroup-52-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44527" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:43.137 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e9c24a, /127.0.0.1:33964 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.137 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e9c24a, /127.0.0.1:33964 => /127.0.0.1:44527] FLUSH
06:38:43.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:43.140 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 => /127.0.0.1:44527] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44527
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.141 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 => /127.0.0.1:44527] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.141 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 => /127.0.0.1:44527] FLUSH
06:38:43.141 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 => /127.0.0.1:44527] CLOSE()
06:38:43.142 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.142 [nioEventLoopGroup-52-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-1
06:38:43.142 [nioEventLoopGroup-52-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-6
06:38:43.142 [nioEventLoopGroup-52-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-2
06:38:43.142 [nioEventLoopGroup-52-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-8
06:38:43.142 [nioEventLoopGroup-52-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-4
06:38:43.142 [nioEventLoopGroup-52-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-3
06:38:43.142 [nioEventLoopGroup-52-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-5
06:38:43.142 [nioEventLoopGroup-52-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-7
06:38:43.143 [nioEventLoopGroup-52-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-10
06:38:43.143 [nioEventLoopGroup-52-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-9
06:38:43.143 [nioEventLoopGroup-52-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-11
06:38:43.143 [nioEventLoopGroup-52-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-12
06:38:43.143 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c7725f2, /127.0.0.1:33962 :> /127.0.0.1:44527] INACTIVE
06:38:43.143 [nioEventLoopGroup-52-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-13
06:38:43.143 [nioEventLoopGroup-66-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-66-1
06:38:43.143 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e9c24a, /127.0.0.1:33964 :> /127.0.0.1:44527] INACTIVE
06:38:43.143 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c7725f2, /127.0.0.1:33962 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.143 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e9c24a, /127.0.0.1:33964 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.164 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 :> /127.0.0.1:33081] FLUSH
06:38:43.164 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 :> /127.0.0.1:33081] INACTIVE
06:38:43.164 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ba3b025, /127.0.0.1:47866 :> /127.0.0.1:33081] UNREGISTERED
06:38:43.164 [nioEventLoopGroup-36-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-16
06:38:43.495 [MockServer thread for port: 39047] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39047
06:38:43.495 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.498 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.499 [nioEventLoopGroup-68-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.499 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.499 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 => /127.0.0.1:39047] FLUSH
06:38:43.499 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.499 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 => /127.0.0.1:39047] FLUSH
06:38:43.499 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 :> /127.0.0.1:39047] INACTIVE
06:38:43.500 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb7d704, /127.0.0.1:53610 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.500 [nioEventLoopGroup-69-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-69-1
06:38:43.502 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.504 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.506 [nioEventLoopGroup-68-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:43.506 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.506 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 => /127.0.0.1:39047] FLUSH
06:38:43.506 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.507 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 => /127.0.0.1:39047] FLUSH
06:38:43.507 [nioEventLoopGroup-70-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-70-1
06:38:43.507 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 :> /127.0.0.1:39047] INACTIVE
06:38:43.507 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeb14f69, /127.0.0.1:53612 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.532 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.533 [nioEventLoopGroup-68-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:43.533 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.533 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 => /127.0.0.1:39047] FLUSH
06:38:43.542 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.542 [nioEventLoopGroup-71-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-71-1
06:38:43.543 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.546 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.549 [nioEventLoopGroup-68-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.550 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 => /127.0.0.1:39047] FLUSH
06:38:43.550 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 :> /127.0.0.1:39047] INACTIVE
06:38:43.550 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.550 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948fbd2f, /127.0.0.1:53620 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.550 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 => /127.0.0.1:39047] FLUSH
06:38:43.553 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.553 [nioEventLoopGroup-72-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-72-1
06:38:43.554 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 => /127.0.0.1:39047] FLUSH
06:38:43.554 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 :> /127.0.0.1:39047] INACTIVE
06:38:43.554 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcecd63d0, /127.0.0.1:53626 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.555 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.558 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.559 [nioEventLoopGroup-68-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:43.559 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.559 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 => /127.0.0.1:39047] FLUSH
06:38:43.560 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 => /127.0.0.1:39047] FLUSH
06:38:43.560 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 :> /127.0.0.1:39047] INACTIVE
06:38:43.561 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf03f1cca, /127.0.0.1:53632 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.561 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.561 [nioEventLoopGroup-73-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-73-1
06:38:43.564 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.566 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.567 [nioEventLoopGroup-68-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:43.567 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.568 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 => /127.0.0.1:39047] FLUSH
06:38:43.568 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.568 [nioEventLoopGroup-74-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-74-1
06:38:43.568 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 => /127.0.0.1:39047] FLUSH
06:38:43.569 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 :> /127.0.0.1:39047] INACTIVE
06:38:43.569 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2b0255, /127.0.0.1:53636 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.594 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.595 [nioEventLoopGroup-68-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:43.595 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.595 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 => /127.0.0.1:39047] FLUSH
06:38:43.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.596 [nioEventLoopGroup-75-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-75-1
06:38:43.597 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.598 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 => /127.0.0.1:39047] FLUSH
06:38:43.598 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 :> /127.0.0.1:39047] INACTIVE
06:38:43.598 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcbb6ce5, /127.0.0.1:53642 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.602 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.603 [nioEventLoopGroup-68-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:43.603 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.603 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 => /127.0.0.1:39047] FLUSH
06:38:43.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.604 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 => /127.0.0.1:39047] FLUSH
06:38:43.604 [nioEventLoopGroup-76-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-76-1
06:38:43.604 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 :> /127.0.0.1:39047] INACTIVE
06:38:43.604 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2eec1263, /127.0.0.1:53646 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.606 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.611 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.613 [nioEventLoopGroup-68-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:43.613 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.613 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 => /127.0.0.1:39047] FLUSH
06:38:43.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.614 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 => /127.0.0.1:39047] FLUSH
06:38:43.614 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 :> /127.0.0.1:39047] INACTIVE
06:38:43.614 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d403453, /127.0.0.1:53650 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.615 [nioEventLoopGroup-77-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-77-1
06:38:43.619 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.624 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.627 [nioEventLoopGroup-68-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:43.628 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.628 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 => /127.0.0.1:39047] FLUSH
06:38:43.630 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 => /127.0.0.1:39047] FLUSH
06:38:43.630 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 :> /127.0.0.1:39047] INACTIVE
06:38:43.630 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34e4b232, /127.0.0.1:53654 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.632 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.636 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.637 [nioEventLoopGroup-68-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:43.637 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.637 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 => /127.0.0.1:39047] FLUSH
06:38:43.638 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 => /127.0.0.1:39047] FLUSH
06:38:43.638 [nioEventLoopGroup-78-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-78-1
06:38:43.638 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.639 [nioEventLoopGroup-79-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-79-1
06:38:43.640 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 :> /127.0.0.1:39047] INACTIVE
06:38:43.640 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d97d4, /127.0.0.1:53662 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.641 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.644 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 :> /127.0.0.1:44527] FLUSH
06:38:43.644 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 :> /127.0.0.1:44527] INACTIVE
06:38:43.644 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x104205c8, /127.0.0.1:33966 :> /127.0.0.1:44527] UNREGISTERED
06:38:43.644 [nioEventLoopGroup-52-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-16
06:38:43.649 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.651 [nioEventLoopGroup-68-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:43.651 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.651 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 => /127.0.0.1:39047] FLUSH
06:38:43.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.652 [nioEventLoopGroup-80-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-80-1
06:38:43.653 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 => /127.0.0.1:39047] FLUSH
06:38:43.653 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 :> /127.0.0.1:39047] INACTIVE
06:38:43.653 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6a0eb90, /127.0.0.1:53670 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.654 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:43.658 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 => /127.0.0.1:39047] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:43.660 [nioEventLoopGroup-68-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:43.660 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.661 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 => /127.0.0.1:39047] FLUSH
06:38:43.662 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 => /127.0.0.1:39047] FLUSH
06:38:43.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.664 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 :> /127.0.0.1:39047] INACTIVE
06:38:43.664 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69df2676, /127.0.0.1:53672 :> /127.0.0.1:39047] UNREGISTERED
06:38:43.664 [nioEventLoopGroup-81-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-81-1
06:38:43.671 [nioEventLoopGroup-36-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-15
06:38:43.673 [nioEventLoopGroup-36-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-14
06:38:43.688 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39047
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:43.689 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.689 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.690 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:43.690 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.690 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.690 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.691 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.691 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:43.691 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:43.691 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.692 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] FLUSH
06:38:43.698 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39047
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:43.699 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.699 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.699 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:43.700 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.700 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.700 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.701 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:43.701 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:43.701 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39047" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:43.701 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.701 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 => /127.0.0.1:39047] FLUSH
06:38:43.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:43.705 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 => /127.0.0.1:39047] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39047
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:43.706 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 => /127.0.0.1:39047] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:43.706 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 => /127.0.0.1:39047] FLUSH
06:38:43.706 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 => /127.0.0.1:39047] CLOSE()
06:38:43.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:43.708 [nioEventLoopGroup-82-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-82-1
06:38:43.715 [nioEventLoopGroup-68-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-4
06:38:43.715 [nioEventLoopGroup-68-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-1
06:38:43.715 [nioEventLoopGroup-68-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-13
06:38:43.715 [nioEventLoopGroup-68-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-2
06:38:43.715 [nioEventLoopGroup-68-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-3
06:38:43.715 [nioEventLoopGroup-68-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-5
06:38:43.715 [nioEventLoopGroup-68-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-6
06:38:43.715 [nioEventLoopGroup-68-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-7
06:38:43.715 [nioEventLoopGroup-68-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-8
06:38:43.715 [nioEventLoopGroup-68-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-9
06:38:43.716 [nioEventLoopGroup-68-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-10
06:38:43.716 [nioEventLoopGroup-68-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-11
06:38:43.716 [nioEventLoopGroup-68-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-12
06:38:43.716 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 :> /127.0.0.1:39047] INACTIVE
06:38:43.725 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b8a70e4, /127.0.0.1:53682 :> /127.0.0.1:39047] UNREGISTERED
06:38:44.063 [MockServer thread for port: 45531] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45531
06:38:44.063 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.065 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.066 [nioEventLoopGroup-84-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.066 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.066 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 => /127.0.0.1:45531] FLUSH
06:38:44.066 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.067 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 => /127.0.0.1:45531] FLUSH
06:38:44.067 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 :> /127.0.0.1:45531] INACTIVE
06:38:44.067 [nioEventLoopGroup-85-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-85-1
06:38:44.067 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x046eca50, /127.0.0.1:33158 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.067 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.070 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.071 [nioEventLoopGroup-84-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:44.071 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.071 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 => /127.0.0.1:45531] FLUSH
06:38:44.071 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.072 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 => /127.0.0.1:45531] FLUSH
06:38:44.072 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 :> /127.0.0.1:45531] INACTIVE
06:38:44.072 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe991c905, /127.0.0.1:33160 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.074 [nioEventLoopGroup-86-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-86-1
06:38:44.075 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.077 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.079 [nioEventLoopGroup-84-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:44.080 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.080 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 => /127.0.0.1:45531] FLUSH
06:38:44.080 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.081 [nioEventLoopGroup-87-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-87-1
06:38:44.081 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 => /127.0.0.1:45531] FLUSH
06:38:44.081 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 :> /127.0.0.1:45531] INACTIVE
06:38:44.081 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3606669, /127.0.0.1:33162 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.082 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.103 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.104 [nioEventLoopGroup-84-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.105 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.105 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 => /127.0.0.1:45531] FLUSH
06:38:44.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.105 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 => /127.0.0.1:45531] FLUSH
06:38:44.105 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 :> /127.0.0.1:45531] INACTIVE
06:38:44.105 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34458a7, /127.0.0.1:33166 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.106 [nioEventLoopGroup-88-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-88-1
06:38:44.106 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.108 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.109 [nioEventLoopGroup-84-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:44.110 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.110 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 => /127.0.0.1:45531] FLUSH
06:38:44.114 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.115 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 => /127.0.0.1:45531] FLUSH
06:38:44.115 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 :> /127.0.0.1:45531] INACTIVE
06:38:44.115 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69b92864, /127.0.0.1:33168 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.116 [nioEventLoopGroup-89-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-89-1
06:38:44.118 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.121 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.123 [nioEventLoopGroup-84-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:44.123 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.123 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 => /127.0.0.1:45531] FLUSH
06:38:44.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.125 [nioEventLoopGroup-90-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-90-1
06:38:44.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.126 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 => /127.0.0.1:45531] FLUSH
06:38:44.128 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 :> /127.0.0.1:45531] INACTIVE
06:38:44.128 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc68602d5, /127.0.0.1:33174 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.135 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.137 [nioEventLoopGroup-84-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:44.137 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.137 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 => /127.0.0.1:45531] FLUSH
06:38:44.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.138 [nioEventLoopGroup-91-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-91-1
06:38:44.138 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 => /127.0.0.1:45531] FLUSH
06:38:44.139 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 :> /127.0.0.1:45531] INACTIVE
06:38:44.139 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa515b7aa, /127.0.0.1:33180 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.139 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.144 [nioEventLoopGroup-52-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-14
06:38:44.145 [nioEventLoopGroup-52-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-15
06:38:44.147 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.148 [nioEventLoopGroup-84-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:44.148 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.148 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 => /127.0.0.1:45531] FLUSH
06:38:44.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.149 [nioEventLoopGroup-92-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-92-1
06:38:44.150 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 => /127.0.0.1:45531] FLUSH
06:38:44.150 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 :> /127.0.0.1:45531] INACTIVE
06:38:44.150 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c50354, /127.0.0.1:33182 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.159 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.165 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.166 [nioEventLoopGroup-84-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:44.167 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.167 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 => /127.0.0.1:45531] FLUSH
06:38:44.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.168 [nioEventLoopGroup-93-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-93-1
06:38:44.169 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 => /127.0.0.1:45531] FLUSH
06:38:44.169 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 :> /127.0.0.1:45531] INACTIVE
06:38:44.169 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd111cd72, /127.0.0.1:33190 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.183 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.184 [nioEventLoopGroup-84-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:44.184 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.184 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 => /127.0.0.1:45531] FLUSH
06:38:44.187 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 => /127.0.0.1:45531] FLUSH
06:38:44.187 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 :> /127.0.0.1:45531] INACTIVE
06:38:44.187 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0277fc6a, /127.0.0.1:33194 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.190 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.191 [nioEventLoopGroup-94-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-94-1
06:38:44.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.195 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.197 [nioEventLoopGroup-84-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:44.198 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.198 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 => /127.0.0.1:45531] FLUSH
06:38:44.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.199 [nioEventLoopGroup-95-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-95-1
06:38:44.199 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 => /127.0.0.1:45531] FLUSH
06:38:44.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.202 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 :> /127.0.0.1:45531] INACTIVE
06:38:44.203 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5343a76, /127.0.0.1:33202 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.207 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.209 [nioEventLoopGroup-84-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:44.211 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.211 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 => /127.0.0.1:45531] FLUSH
06:38:44.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.213 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 => /127.0.0.1:45531] FLUSH
06:38:44.213 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 :> /127.0.0.1:45531] INACTIVE
06:38:44.213 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcca555b3, /127.0.0.1:33210 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.214 [nioEventLoopGroup-96-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-96-1
06:38:44.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.225 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 :> /127.0.0.1:39047] FLUSH
06:38:44.225 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 :> /127.0.0.1:39047] INACTIVE
06:38:44.225 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc288837, /127.0.0.1:53688 :> /127.0.0.1:39047] UNREGISTERED
06:38:44.229 [nioEventLoopGroup-68-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-15
06:38:44.231 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 => /127.0.0.1:45531] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.237 [nioEventLoopGroup-84-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.238 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.238 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 => /127.0.0.1:45531] FLUSH
06:38:44.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.239 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 => /127.0.0.1:45531] FLUSH
06:38:44.240 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 :> /127.0.0.1:45531] INACTIVE
06:38:44.240 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea913ea, /127.0.0.1:33216 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.243 [nioEventLoopGroup-97-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-97-1
06:38:44.265 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45531
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:44.266 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.266 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.266 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:44.267 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.267 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.271 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.275 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.284 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.286 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:44.292 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:44.294 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.294 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] FLUSH
06:38:44.297 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45531
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:44.299 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.302 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.305 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:44.307 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.329 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.332 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.346 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.346 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.347 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:44.347 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45531" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:44.347 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.347 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 => /127.0.0.1:45531] FLUSH
06:38:44.350 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:44.356 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 => /127.0.0.1:45531] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45531
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.360 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 => /127.0.0.1:45531] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.362 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 => /127.0.0.1:45531] FLUSH
06:38:44.366 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.367 [nioEventLoopGroup-98-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-98-1
06:38:44.368 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 => /127.0.0.1:45531] CLOSE()
06:38:44.392 [nioEventLoopGroup-84-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-2
06:38:44.393 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 :> /127.0.0.1:45531] INACTIVE
06:38:44.393 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93813434, /127.0.0.1:33228 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.393 [nioEventLoopGroup-84-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-3
06:38:44.393 [nioEventLoopGroup-84-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-12
06:38:44.393 [nioEventLoopGroup-84-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-8
06:38:44.393 [nioEventLoopGroup-84-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-7
06:38:44.393 [nioEventLoopGroup-84-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-5
06:38:44.394 [nioEventLoopGroup-84-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-4
06:38:44.394 [nioEventLoopGroup-84-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-10
06:38:44.394 [nioEventLoopGroup-84-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-6
06:38:44.394 [nioEventLoopGroup-84-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-9
06:38:44.394 [nioEventLoopGroup-84-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-13
06:38:44.395 [nioEventLoopGroup-84-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-11
06:38:44.398 [nioEventLoopGroup-84-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-1
06:38:44.726 [nioEventLoopGroup-68-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-14
06:38:44.763 [MockServer thread for port: 43590] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43590
06:38:44.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.766 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.767 [nioEventLoopGroup-100-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.767 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.767 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 => /127.0.0.1:43590] FLUSH
06:38:44.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.767 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 => /127.0.0.1:43590] FLUSH
06:38:44.767 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 :> /127.0.0.1:43590] INACTIVE
06:38:44.767 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fd5c429, /127.0.0.1:58084 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.768 [nioEventLoopGroup-101-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-101-1
06:38:44.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.771 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.771 [nioEventLoopGroup-100-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:44.772 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.772 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 => /127.0.0.1:43590] FLUSH
06:38:44.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.772 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 => /127.0.0.1:43590] FLUSH
06:38:44.772 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 :> /127.0.0.1:43590] INACTIVE
06:38:44.772 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced9af3a, /127.0.0.1:58086 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.772 [nioEventLoopGroup-102-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-102-1
06:38:44.773 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.775 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.776 [nioEventLoopGroup-100-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:44.776 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.776 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 => /127.0.0.1:43590] FLUSH
06:38:44.777 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 => /127.0.0.1:43590] FLUSH
06:38:44.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.777 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 :> /127.0.0.1:43590] INACTIVE
06:38:44.777 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x164ffeef, /127.0.0.1:58088 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.777 [nioEventLoopGroup-103-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-103-1
06:38:44.778 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.780 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.781 [nioEventLoopGroup-100-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.781 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.781 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 => /127.0.0.1:43590] FLUSH
06:38:44.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.781 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 => /127.0.0.1:43590] FLUSH
06:38:44.782 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 :> /127.0.0.1:43590] INACTIVE
06:38:44.782 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce359a4, /127.0.0.1:58090 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.782 [nioEventLoopGroup-104-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-104-1
06:38:44.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.785 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.785 [nioEventLoopGroup-100-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:44.785 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.786 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 => /127.0.0.1:43590] FLUSH
06:38:44.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.786 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 => /127.0.0.1:43590] FLUSH
06:38:44.786 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 :> /127.0.0.1:43590] INACTIVE
06:38:44.786 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x061bc850, /127.0.0.1:58092 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.786 [nioEventLoopGroup-105-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-105-1
06:38:44.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.804 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.805 [nioEventLoopGroup-100-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:44.805 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.805 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 => /127.0.0.1:43590] FLUSH
06:38:44.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.805 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 => /127.0.0.1:43590] FLUSH
06:38:44.805 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 :> /127.0.0.1:43590] INACTIVE
06:38:44.805 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42c40c5, /127.0.0.1:58094 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.806 [nioEventLoopGroup-106-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-106-1
06:38:44.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.808 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.809 [nioEventLoopGroup-100-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:44.809 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.809 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 => /127.0.0.1:43590] FLUSH
06:38:44.809 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.809 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 => /127.0.0.1:43590] FLUSH
06:38:44.809 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 :> /127.0.0.1:43590] INACTIVE
06:38:44.809 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01130f50, /127.0.0.1:58096 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.810 [nioEventLoopGroup-107-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-107-1
06:38:44.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.813 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.814 [nioEventLoopGroup-100-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:44.814 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.814 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 => /127.0.0.1:43590] FLUSH
06:38:44.814 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 => /127.0.0.1:43590] FLUSH
06:38:44.814 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.814 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 :> /127.0.0.1:43590] INACTIVE
06:38:44.814 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19512c2f, /127.0.0.1:58098 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.814 [nioEventLoopGroup-108-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-108-1
06:38:44.815 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.817 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.818 [nioEventLoopGroup-100-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:44.818 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.818 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 => /127.0.0.1:43590] FLUSH
06:38:44.818 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.818 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 => /127.0.0.1:43590] FLUSH
06:38:44.818 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 :> /127.0.0.1:43590] INACTIVE
06:38:44.818 [nioEventLoopGroup-109-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-109-1
06:38:44.818 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x699ef0a7, /127.0.0.1:58100 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.819 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.821 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.822 [nioEventLoopGroup-100-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:44.822 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.822 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 => /127.0.0.1:43590] FLUSH
06:38:44.822 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.823 [nioEventLoopGroup-110-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-110-1
06:38:44.823 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 => /127.0.0.1:43590] FLUSH
06:38:44.823 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 :> /127.0.0.1:43590] INACTIVE
06:38:44.823 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2978d7, /127.0.0.1:58102 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.823 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.827 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.827 [nioEventLoopGroup-100-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:44.827 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.828 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 => /127.0.0.1:43590] FLUSH
06:38:44.828 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.828 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 => /127.0.0.1:43590] FLUSH
06:38:44.828 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 :> /127.0.0.1:43590] INACTIVE
06:38:44.828 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e7d9a6d, /127.0.0.1:58104 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.828 [nioEventLoopGroup-111-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-111-1
06:38:44.830 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.832 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.833 [nioEventLoopGroup-100-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:44.833 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.833 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 => /127.0.0.1:43590] FLUSH
06:38:44.833 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.833 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 => /127.0.0.1:43590] FLUSH
06:38:44.833 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 :> /127.0.0.1:43590] INACTIVE
06:38:44.833 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa45685e7, /127.0.0.1:58106 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.833 [nioEventLoopGroup-112-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-112-1
06:38:44.834 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:44.836 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 => /127.0.0.1:43590] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:44.836 [nioEventLoopGroup-100-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:44.836 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.837 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 => /127.0.0.1:43590] FLUSH
06:38:44.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.837 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 => /127.0.0.1:43590] FLUSH
06:38:44.837 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 :> /127.0.0.1:43590] INACTIVE
06:38:44.837 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1563711, /127.0.0.1:58108 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.837 [nioEventLoopGroup-113-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-113-1
06:38:44.839 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43590
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:44.840 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.840 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.840 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:44.840 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.841 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:44.842 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:44.842 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.842 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] FLUSH
06:38:44.845 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43590
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:44.845 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.846 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.846 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:44.846 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.846 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.847 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.847 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.847 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.847 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:44.847 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:44.848 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43590" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:44.848 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.848 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 => /127.0.0.1:43590] FLUSH
06:38:44.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:44.851 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 => /127.0.0.1:43590] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43590
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:44.851 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 => /127.0.0.1:43590] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:44.851 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 => /127.0.0.1:43590] FLUSH
06:38:44.851 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 => /127.0.0.1:43590] CLOSE()
06:38:44.851 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:44.852 [nioEventLoopGroup-114-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-114-1
06:38:44.860 [nioEventLoopGroup-100-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-1
06:38:44.860 [nioEventLoopGroup-100-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-2
06:38:44.860 [nioEventLoopGroup-100-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-3
06:38:44.860 [nioEventLoopGroup-100-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-4
06:38:44.860 [nioEventLoopGroup-100-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-5
06:38:44.860 [nioEventLoopGroup-100-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-6
06:38:44.860 [nioEventLoopGroup-100-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-7
06:38:44.860 [nioEventLoopGroup-100-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-8
06:38:44.860 [nioEventLoopGroup-100-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-9
06:38:44.860 [nioEventLoopGroup-100-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-10
06:38:44.860 [nioEventLoopGroup-100-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-11
06:38:44.861 [nioEventLoopGroup-100-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-12
06:38:44.861 [nioEventLoopGroup-100-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-13
06:38:44.861 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 :> /127.0.0.1:43590] INACTIVE
06:38:44.861 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x229c9ad2, /127.0.0.1:58110 :> /127.0.0.1:43590] UNREGISTERED
06:38:44.893 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 :> /127.0.0.1:45531] FLUSH
06:38:44.893 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 :> /127.0.0.1:45531] INACTIVE
06:38:44.893 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe23d3ba9, /127.0.0.1:33256 :> /127.0.0.1:45531] UNREGISTERED
06:38:44.893 [nioEventLoopGroup-84-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-15
06:38:45.205 [MockServer thread for port: 44102] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44102
06:38:45.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.207 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.208 [nioEventLoopGroup-116-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.208 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.208 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 => /127.0.0.1:44102] FLUSH
06:38:45.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.208 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 => /127.0.0.1:44102] FLUSH
06:38:45.208 [nioEventLoopGroup-117-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-117-1
06:38:45.208 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 :> /127.0.0.1:44102] INACTIVE
06:38:45.208 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79097b1, /127.0.0.1:47788 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.211 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.215 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.216 [nioEventLoopGroup-116-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:45.216 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 => /127.0.0.1:44102] FLUSH
06:38:45.217 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 => /127.0.0.1:44102] FLUSH
06:38:45.217 [nioEventLoopGroup-118-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-118-1
06:38:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 :> /127.0.0.1:44102] INACTIVE
06:38:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d085e52, /127.0.0.1:47790 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.222 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.223 [nioEventLoopGroup-116-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:45.223 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.223 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 => /127.0.0.1:44102] FLUSH
06:38:45.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.224 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 => /127.0.0.1:44102] FLUSH
06:38:45.224 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 :> /127.0.0.1:44102] INACTIVE
06:38:45.224 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf50a710f, /127.0.0.1:47792 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.224 [nioEventLoopGroup-119-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-119-1
06:38:45.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.226 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.227 [nioEventLoopGroup-116-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.227 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.227 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 => /127.0.0.1:44102] FLUSH
06:38:45.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.228 [nioEventLoopGroup-120-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-120-1
06:38:45.228 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 => /127.0.0.1:44102] FLUSH
06:38:45.229 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 :> /127.0.0.1:44102] INACTIVE
06:38:45.229 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c94b5aa, /127.0.0.1:47794 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.231 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.232 [nioEventLoopGroup-116-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:45.232 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.232 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 => /127.0.0.1:44102] FLUSH
06:38:45.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.233 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 => /127.0.0.1:44102] FLUSH
06:38:45.233 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 :> /127.0.0.1:44102] INACTIVE
06:38:45.233 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca571da, /127.0.0.1:47796 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.233 [nioEventLoopGroup-121-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-121-1
06:38:45.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.235 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.236 [nioEventLoopGroup-116-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:45.236 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.236 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 => /127.0.0.1:44102] FLUSH
06:38:45.236 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.237 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 => /127.0.0.1:44102] FLUSH
06:38:45.237 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 :> /127.0.0.1:44102] INACTIVE
06:38:45.237 [nioEventLoopGroup-122-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-122-1
06:38:45.237 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4017527b, /127.0.0.1:47798 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.237 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.239 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.239 [nioEventLoopGroup-116-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:45.239 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.240 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 => /127.0.0.1:44102] FLUSH
06:38:45.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.240 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 => /127.0.0.1:44102] FLUSH
06:38:45.240 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 :> /127.0.0.1:44102] INACTIVE
06:38:45.240 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5e444bf, /127.0.0.1:47800 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.240 [nioEventLoopGroup-123-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-123-1
06:38:45.241 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.243 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.244 [nioEventLoopGroup-116-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:45.245 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.245 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 => /127.0.0.1:44102] FLUSH
06:38:45.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.245 [nioEventLoopGroup-124-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-124-1
06:38:45.245 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 => /127.0.0.1:44102] FLUSH
06:38:45.246 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 :> /127.0.0.1:44102] INACTIVE
06:38:45.246 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2287bcb, /127.0.0.1:47802 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.249 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.249 [nioEventLoopGroup-116-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:45.250 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.250 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 => /127.0.0.1:44102] FLUSH
06:38:45.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.250 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 => /127.0.0.1:44102] FLUSH
06:38:45.250 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 :> /127.0.0.1:44102] INACTIVE
06:38:45.250 [nioEventLoopGroup-125-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-125-1
06:38:45.250 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0913c75e, /127.0.0.1:47804 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.254 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.255 [nioEventLoopGroup-116-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:45.255 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.255 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 => /127.0.0.1:44102] FLUSH
06:38:45.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.255 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 => /127.0.0.1:44102] FLUSH
06:38:45.255 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 :> /127.0.0.1:44102] INACTIVE
06:38:45.255 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf624d47c, /127.0.0.1:47806 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.255 [nioEventLoopGroup-126-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-126-1
06:38:45.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.260 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.260 [nioEventLoopGroup-116-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:45.261 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.261 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 => /127.0.0.1:44102] FLUSH
06:38:45.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.261 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 => /127.0.0.1:44102] FLUSH
06:38:45.262 [nioEventLoopGroup-127-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-127-1
06:38:45.262 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 :> /127.0.0.1:44102] INACTIVE
06:38:45.262 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62391f2d, /127.0.0.1:47808 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.265 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.266 [nioEventLoopGroup-116-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:45.266 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.266 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 => /127.0.0.1:44102] FLUSH
06:38:45.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.267 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 => /127.0.0.1:44102] FLUSH
06:38:45.267 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 :> /127.0.0.1:44102] INACTIVE
06:38:45.267 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee24d4d1, /127.0.0.1:47810 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.267 [nioEventLoopGroup-128-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-128-1
06:38:45.268 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.270 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 => /127.0.0.1:44102] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.271 [nioEventLoopGroup-116-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.271 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.271 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 => /127.0.0.1:44102] FLUSH
06:38:45.272 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.272 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 => /127.0.0.1:44102] FLUSH
06:38:45.272 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 :> /127.0.0.1:44102] INACTIVE
06:38:45.272 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fd1b89c, /127.0.0.1:47812 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.272 [nioEventLoopGroup-129-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-129-1
06:38:45.273 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44102
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:45.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:45.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:45.276 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:45.276 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.276 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] FLUSH
06:38:45.278 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44102
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:45.279 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.279 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.279 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:45.279 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.280 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.281 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:45.281 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44102" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:45.281 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.281 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 => /127.0.0.1:44102] FLUSH
06:38:45.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:45.284 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 => /127.0.0.1:44102] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44102
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.284 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 => /127.0.0.1:44102] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.284 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 => /127.0.0.1:44102] FLUSH
06:38:45.284 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 => /127.0.0.1:44102] CLOSE()
06:38:45.285 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.285 [nioEventLoopGroup-130-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-130-1
06:38:45.286 [nioEventLoopGroup-116-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-1
06:38:45.286 [nioEventLoopGroup-116-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-6
06:38:45.286 [nioEventLoopGroup-116-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-5
06:38:45.286 [nioEventLoopGroup-116-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-2
06:38:45.286 [nioEventLoopGroup-116-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-3
06:38:45.286 [nioEventLoopGroup-116-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-4
06:38:45.286 [nioEventLoopGroup-116-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-7
06:38:45.286 [nioEventLoopGroup-116-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-8
06:38:45.286 [nioEventLoopGroup-116-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-9
06:38:45.286 [nioEventLoopGroup-116-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-10
06:38:45.286 [nioEventLoopGroup-116-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-11
06:38:45.286 [nioEventLoopGroup-116-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-12
06:38:45.286 [nioEventLoopGroup-116-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-13
06:38:45.287 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 :> /127.0.0.1:44102] INACTIVE
06:38:45.287 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3533d831, /127.0.0.1:47814 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.362 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 :> /127.0.0.1:43590] FLUSH
06:38:45.363 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 :> /127.0.0.1:43590] INACTIVE
06:38:45.363 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48ac138f, /127.0.0.1:58114 :> /127.0.0.1:43590] UNREGISTERED
06:38:45.363 [nioEventLoopGroup-100-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-15
06:38:45.394 [nioEventLoopGroup-84-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-14
06:38:45.640 [MockServer thread for port: 44122] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44122
06:38:45.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.642 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.643 [nioEventLoopGroup-132-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.643 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.644 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 => /127.0.0.1:44122] FLUSH
06:38:45.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.644 [nioEventLoopGroup-133-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-133-1
06:38:45.644 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 => /127.0.0.1:44122] FLUSH
06:38:45.644 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 :> /127.0.0.1:44122] INACTIVE
06:38:45.644 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe79a5ca, /127.0.0.1:37626 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.645 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.647 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.648 [nioEventLoopGroup-132-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:45.648 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.648 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 => /127.0.0.1:44122] FLUSH
06:38:45.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.648 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 => /127.0.0.1:44122] FLUSH
06:38:45.648 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 :> /127.0.0.1:44122] INACTIVE
06:38:45.648 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea45386, /127.0.0.1:37628 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.648 [nioEventLoopGroup-134-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-134-1
06:38:45.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.651 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.651 [nioEventLoopGroup-132-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:45.652 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.652 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 => /127.0.0.1:44122] FLUSH
06:38:45.652 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 => /127.0.0.1:44122] FLUSH
06:38:45.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.652 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 :> /127.0.0.1:44122] INACTIVE
06:38:45.652 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5f9afdd, /127.0.0.1:37630 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.652 [nioEventLoopGroup-135-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-135-1
06:38:45.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.655 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.655 [nioEventLoopGroup-132-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.655 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.656 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 => /127.0.0.1:44122] FLUSH
06:38:45.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.662 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 => /127.0.0.1:44122] FLUSH
06:38:45.662 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 :> /127.0.0.1:44122] INACTIVE
06:38:45.662 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf873b038, /127.0.0.1:37632 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.662 [nioEventLoopGroup-136-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-136-1
06:38:45.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.670 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.670 [nioEventLoopGroup-132-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:45.671 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.671 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 => /127.0.0.1:44122] FLUSH
06:38:45.671 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.672 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.673 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 => /127.0.0.1:44122] FLUSH
06:38:45.674 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 :> /127.0.0.1:44122] INACTIVE
06:38:45.674 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32014cdb, /127.0.0.1:37634 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.674 [nioEventLoopGroup-137-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-137-1
06:38:45.678 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.680 [nioEventLoopGroup-132-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:45.680 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.680 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 => /127.0.0.1:44122] FLUSH
06:38:45.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.681 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 => /127.0.0.1:44122] FLUSH
06:38:45.681 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 :> /127.0.0.1:44122] INACTIVE
06:38:45.681 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99d7b762, /127.0.0.1:37636 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.681 [nioEventLoopGroup-138-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-138-1
06:38:45.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.685 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.686 [nioEventLoopGroup-132-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:45.686 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.687 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 => /127.0.0.1:44122] FLUSH
06:38:45.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.687 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 => /127.0.0.1:44122] FLUSH
06:38:45.687 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 :> /127.0.0.1:44122] INACTIVE
06:38:45.687 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b8e827d, /127.0.0.1:37638 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.688 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.691 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.691 [nioEventLoopGroup-139-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-139-1
06:38:45.692 [nioEventLoopGroup-132-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:45.692 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.692 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 => /127.0.0.1:44122] FLUSH
06:38:45.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.693 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 => /127.0.0.1:44122] FLUSH
06:38:45.693 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 :> /127.0.0.1:44122] INACTIVE
06:38:45.693 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc57100, /127.0.0.1:37640 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.693 [nioEventLoopGroup-140-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-140-1
06:38:45.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.700 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.701 [nioEventLoopGroup-132-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:45.701 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.702 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 => /127.0.0.1:44122] FLUSH
06:38:45.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.702 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 => /127.0.0.1:44122] FLUSH
06:38:45.702 [nioEventLoopGroup-141-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-141-1
06:38:45.702 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 :> /127.0.0.1:44122] INACTIVE
06:38:45.703 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a8e585, /127.0.0.1:37642 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.705 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.706 [nioEventLoopGroup-132-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:45.706 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.706 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 => /127.0.0.1:44122] FLUSH
06:38:45.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.707 [nioEventLoopGroup-142-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-142-1
06:38:45.707 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 => /127.0.0.1:44122] FLUSH
06:38:45.707 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 :> /127.0.0.1:44122] INACTIVE
06:38:45.707 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec012a, /127.0.0.1:37644 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.714 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.715 [nioEventLoopGroup-132-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:45.715 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.715 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 => /127.0.0.1:44122] FLUSH
06:38:45.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.715 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 => /127.0.0.1:44122] FLUSH
06:38:45.716 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 :> /127.0.0.1:44122] INACTIVE
06:38:45.716 [nioEventLoopGroup-143-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-143-1
06:38:45.716 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeebeb735, /127.0.0.1:37646 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.718 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.718 [nioEventLoopGroup-132-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:45.719 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.719 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 => /127.0.0.1:44122] FLUSH
06:38:45.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.719 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 => /127.0.0.1:44122] FLUSH
06:38:45.719 [nioEventLoopGroup-144-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-144-1
06:38:45.719 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 :> /127.0.0.1:44122] INACTIVE
06:38:45.719 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x188c44a9, /127.0.0.1:37648 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:45.742 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 => /127.0.0.1:44122] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:45.744 [nioEventLoopGroup-132-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:45.744 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.744 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 => /127.0.0.1:44122] FLUSH
06:38:45.745 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 => /127.0.0.1:44122] FLUSH
06:38:45.745 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.745 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 :> /127.0.0.1:44122] INACTIVE
06:38:45.745 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b1e605, /127.0.0.1:37651 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.745 [nioEventLoopGroup-145-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-145-1
06:38:45.755 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac5522cc, /127.0.0.1:37654 => /127.0.0.1:44122] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44122
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:45.756 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.756 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.756 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:45.756 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.756 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.757 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.757 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.757 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:45.757 [nioEventLoopGroup-132-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:45.757 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac5522cc, /127.0.0.1:37654 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.758 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac5522cc, /127.0.0.1:37654 => /127.0.0.1:44122] FLUSH
06:38:45.763 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde7e58f, /127.0.0.1:37658 => /127.0.0.1:44122] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44122
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.764 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.765 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:45.765 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:45.765 [nioEventLoopGroup-132-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44122" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:45.765 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde7e58f, /127.0.0.1:37658 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.765 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde7e58f, /127.0.0.1:37658 => /127.0.0.1:44122] FLUSH
06:38:45.766 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:45.769 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 => /127.0.0.1:44122] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44122
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:45.769 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 => /127.0.0.1:44122] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:45.770 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 => /127.0.0.1:44122] FLUSH
06:38:45.770 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 => /127.0.0.1:44122] CLOSE()
06:38:45.772 [nioEventLoopGroup-132-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-5
06:38:45.772 [nioEventLoopGroup-132-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-4
06:38:45.772 [nioEventLoopGroup-132-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-1
06:38:45.772 [nioEventLoopGroup-132-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-2
06:38:45.772 [nioEventLoopGroup-132-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-6
06:38:45.772 [nioEventLoopGroup-132-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-7
06:38:45.772 [nioEventLoopGroup-132-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-8
06:38:45.773 [nioEventLoopGroup-132-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-9
06:38:45.773 [nioEventLoopGroup-132-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-10
06:38:45.773 [nioEventLoopGroup-132-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-12
06:38:45.773 [nioEventLoopGroup-132-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-13
06:38:45.773 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac5522cc, /127.0.0.1:37654 :> /127.0.0.1:44122] INACTIVE
06:38:45.773 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde7e58f, /127.0.0.1:37658 :> /127.0.0.1:44122] INACTIVE
06:38:45.774 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac5522cc, /127.0.0.1:37654 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.774 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde7e58f, /127.0.0.1:37658 :> /127.0.0.1:44122] UNREGISTERED
06:38:45.778 [nioEventLoopGroup-132-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-11
06:38:45.782 [nioEventLoopGroup-132-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-3
06:38:45.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:45.787 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 :> /127.0.0.1:44102] FLUSH
06:38:45.787 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 :> /127.0.0.1:44102] INACTIVE
06:38:45.787 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb371947a, /127.0.0.1:47816 :> /127.0.0.1:44102] UNREGISTERED
06:38:45.787 [nioEventLoopGroup-116-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-15
06:38:45.791 [nioEventLoopGroup-146-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-146-1
06:38:45.862 [nioEventLoopGroup-100-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-14
06:38:46.142 [MockServer thread for port: 43746] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43746
06:38:46.142 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.144 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.145 [nioEventLoopGroup-148-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.145 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.145 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 => /127.0.0.1:43746] FLUSH
06:38:46.145 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.146 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 => /127.0.0.1:43746] FLUSH
06:38:46.146 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 :> /127.0.0.1:43746] INACTIVE
06:38:46.146 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50423d18, /127.0.0.1:58370 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.146 [nioEventLoopGroup-149-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-149-1
06:38:46.147 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.149 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.150 [nioEventLoopGroup-148-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:46.150 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.150 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 => /127.0.0.1:43746] FLUSH
06:38:46.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.151 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 => /127.0.0.1:43746] FLUSH
06:38:46.151 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 :> /127.0.0.1:43746] INACTIVE
06:38:46.151 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x648b22b4, /127.0.0.1:58372 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.151 [nioEventLoopGroup-150-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-150-1
06:38:46.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.153 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.154 [nioEventLoopGroup-148-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:46.154 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.154 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 => /127.0.0.1:43746] FLUSH
06:38:46.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.154 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 => /127.0.0.1:43746] FLUSH
06:38:46.155 [nioEventLoopGroup-151-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-151-1
06:38:46.155 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 :> /127.0.0.1:43746] INACTIVE
06:38:46.155 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5ed1d84, /127.0.0.1:58374 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.157 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.158 [nioEventLoopGroup-148-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.158 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.158 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 => /127.0.0.1:43746] FLUSH
06:38:46.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.158 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 => /127.0.0.1:43746] FLUSH
06:38:46.158 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 :> /127.0.0.1:43746] INACTIVE
06:38:46.158 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x645b7484, /127.0.0.1:58376 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.158 [nioEventLoopGroup-152-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-152-1
06:38:46.159 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.161 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.161 [nioEventLoopGroup-148-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:46.162 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.162 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 => /127.0.0.1:43746] FLUSH
06:38:46.162 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.162 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 => /127.0.0.1:43746] FLUSH
06:38:46.162 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 :> /127.0.0.1:43746] INACTIVE
06:38:46.162 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e2cf8fd, /127.0.0.1:58378 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.162 [nioEventLoopGroup-153-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-153-1
06:38:46.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.165 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.166 [nioEventLoopGroup-148-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:46.166 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.166 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 => /127.0.0.1:43746] FLUSH
06:38:46.166 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.166 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 => /127.0.0.1:43746] FLUSH
06:38:46.166 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 :> /127.0.0.1:43746] INACTIVE
06:38:46.166 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6f4dc69, /127.0.0.1:58380 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.166 [nioEventLoopGroup-154-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-154-1
06:38:46.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.169 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.170 [nioEventLoopGroup-148-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:46.170 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.170 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 => /127.0.0.1:43746] FLUSH
06:38:46.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.170 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 => /127.0.0.1:43746] FLUSH
06:38:46.171 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 :> /127.0.0.1:43746] INACTIVE
06:38:46.171 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76691095, /127.0.0.1:58382 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.171 [nioEventLoopGroup-155-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-155-1
06:38:46.171 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.173 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.174 [nioEventLoopGroup-148-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:46.174 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.174 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 => /127.0.0.1:43746] FLUSH
06:38:46.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.175 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 => /127.0.0.1:43746] FLUSH
06:38:46.175 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 :> /127.0.0.1:43746] INACTIVE
06:38:46.175 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb9d39bb, /127.0.0.1:58384 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.175 [nioEventLoopGroup-156-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-156-1
06:38:46.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.177 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.178 [nioEventLoopGroup-148-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:46.178 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.178 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 => /127.0.0.1:43746] FLUSH
06:38:46.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.179 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 => /127.0.0.1:43746] FLUSH
06:38:46.179 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 :> /127.0.0.1:43746] INACTIVE
06:38:46.179 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3300e671, /127.0.0.1:58386 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.179 [nioEventLoopGroup-157-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-157-1
06:38:46.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.181 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.182 [nioEventLoopGroup-148-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:46.182 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.182 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 => /127.0.0.1:43746] FLUSH
06:38:46.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.182 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 => /127.0.0.1:43746] FLUSH
06:38:46.182 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 :> /127.0.0.1:43746] INACTIVE
06:38:46.182 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x448fe79e, /127.0.0.1:58388 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.183 [nioEventLoopGroup-158-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-158-1
06:38:46.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.185 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.186 [nioEventLoopGroup-148-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:46.186 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.186 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 => /127.0.0.1:43746] FLUSH
06:38:46.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.187 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 => /127.0.0.1:43746] FLUSH
06:38:46.187 [nioEventLoopGroup-159-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-159-1
06:38:46.187 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 :> /127.0.0.1:43746] INACTIVE
06:38:46.187 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf831d2d1, /127.0.0.1:58390 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.189 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.190 [nioEventLoopGroup-148-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:46.190 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.191 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 => /127.0.0.1:43746] FLUSH
06:38:46.191 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.191 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 => /127.0.0.1:43746] FLUSH
06:38:46.191 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 :> /127.0.0.1:43746] INACTIVE
06:38:46.191 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x667a03ac, /127.0.0.1:58392 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.191 [nioEventLoopGroup-160-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-160-1
06:38:46.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.194 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 => /127.0.0.1:43746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.196 [nioEventLoopGroup-148-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.196 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.196 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 => /127.0.0.1:43746] FLUSH
06:38:46.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.196 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 => /127.0.0.1:43746] FLUSH
06:38:46.196 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 :> /127.0.0.1:43746] INACTIVE
06:38:46.196 [nioEventLoopGroup-161-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-161-1
06:38:46.199 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac52654d, /127.0.0.1:58394 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.201 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce21fad0, /127.0.0.1:58396 => /127.0.0.1:43746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:43746
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:46.201 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.201 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.202 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:46.202 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.202 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.202 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.202 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.203 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.203 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:46.203 [nioEventLoopGroup-148-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:46.203 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce21fad0, /127.0.0.1:58396 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.203 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce21fad0, /127.0.0.1:58396 => /127.0.0.1:43746] FLUSH
06:38:46.209 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8c1660, /127.0.0.1:58398 => /127.0.0.1:43746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:43746
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:46.209 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.209 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.209 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:46.209 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:46.210 [nioEventLoopGroup-148-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43746" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:46.210 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8c1660, /127.0.0.1:58398 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.211 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8c1660, /127.0.0.1:58398 => /127.0.0.1:43746] FLUSH
06:38:46.211 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:46.213 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 => /127.0.0.1:43746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43746
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.213 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 => /127.0.0.1:43746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.214 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 => /127.0.0.1:43746] FLUSH
06:38:46.214 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 => /127.0.0.1:43746] CLOSE()
06:38:46.214 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.214 [nioEventLoopGroup-162-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-162-1
06:38:46.215 [nioEventLoopGroup-148-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-2
06:38:46.215 [nioEventLoopGroup-148-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-3
06:38:46.215 [nioEventLoopGroup-148-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-5
06:38:46.215 [nioEventLoopGroup-148-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-8
06:38:46.215 [nioEventLoopGroup-148-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-1
06:38:46.215 [nioEventLoopGroup-148-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-4
06:38:46.215 [nioEventLoopGroup-148-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-6
06:38:46.215 [nioEventLoopGroup-148-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-7
06:38:46.215 [nioEventLoopGroup-148-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-9
06:38:46.215 [nioEventLoopGroup-148-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-10
06:38:46.215 [nioEventLoopGroup-148-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-11
06:38:46.215 [nioEventLoopGroup-148-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-12
06:38:46.215 [nioEventLoopGroup-148-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-13
06:38:46.215 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce21fad0, /127.0.0.1:58396 :> /127.0.0.1:43746] INACTIVE
06:38:46.215 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8c1660, /127.0.0.1:58398 :> /127.0.0.1:43746] INACTIVE
06:38:46.216 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8c1660, /127.0.0.1:58398 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.216 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce21fad0, /127.0.0.1:58396 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.272 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 :> /127.0.0.1:44122] FLUSH
06:38:46.272 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 :> /127.0.0.1:44122] INACTIVE
06:38:46.272 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ed2a87c, /127.0.0.1:37660 :> /127.0.0.1:44122] UNREGISTERED
06:38:46.273 [nioEventLoopGroup-132-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-16
06:38:46.288 [nioEventLoopGroup-116-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-14
06:38:46.570 [MockServer thread for port: 34664] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34664
06:38:46.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.573 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.576 [nioEventLoopGroup-164-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.576 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.576 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 => /127.0.0.1:34664] FLUSH
06:38:46.577 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 => /127.0.0.1:34664] FLUSH
06:38:46.577 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.577 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 :> /127.0.0.1:34664] INACTIVE
06:38:46.577 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31a3e3e6, /127.0.0.1:54286 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.579 [nioEventLoopGroup-165-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-165-1
06:38:46.581 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.583 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.587 [nioEventLoopGroup-164-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:46.587 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.587 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 => /127.0.0.1:34664] FLUSH
06:38:46.590 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.590 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 => /127.0.0.1:34664] FLUSH
06:38:46.590 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 :> /127.0.0.1:34664] INACTIVE
06:38:46.590 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b2b7a0d, /127.0.0.1:54288 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.590 [nioEventLoopGroup-166-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-166-1
06:38:46.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.595 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.596 [nioEventLoopGroup-164-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:46.596 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.598 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 => /127.0.0.1:34664] FLUSH
06:38:46.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.599 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 => /127.0.0.1:34664] FLUSH
06:38:46.599 [nioEventLoopGroup-167-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-167-1
06:38:46.599 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 :> /127.0.0.1:34664] INACTIVE
06:38:46.599 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d2c3e37, /127.0.0.1:54290 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.605 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.606 [nioEventLoopGroup-164-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.606 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.606 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 => /127.0.0.1:34664] FLUSH
06:38:46.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.607 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 => /127.0.0.1:34664] FLUSH
06:38:46.607 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 :> /127.0.0.1:34664] INACTIVE
06:38:46.607 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e22b8d4, /127.0.0.1:54292 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.607 [nioEventLoopGroup-168-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-168-1
06:38:46.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.611 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.612 [nioEventLoopGroup-164-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:46.612 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.612 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 => /127.0.0.1:34664] FLUSH
06:38:46.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.613 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 => /127.0.0.1:34664] FLUSH
06:38:46.613 [nioEventLoopGroup-169-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-169-1
06:38:46.613 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 :> /127.0.0.1:34664] INACTIVE
06:38:46.613 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf511dcd0, /127.0.0.1:54294 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.625 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.627 [nioEventLoopGroup-164-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:46.627 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.627 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 => /127.0.0.1:34664] FLUSH
06:38:46.628 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.629 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 => /127.0.0.1:34664] FLUSH
06:38:46.629 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 :> /127.0.0.1:34664] INACTIVE
06:38:46.630 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49fec201, /127.0.0.1:54296 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.630 [nioEventLoopGroup-170-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-170-1
06:38:46.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.640 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.642 [nioEventLoopGroup-164-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:46.643 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.643 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 => /127.0.0.1:34664] FLUSH
06:38:46.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.644 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 => /127.0.0.1:34664] FLUSH
06:38:46.644 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 :> /127.0.0.1:34664] INACTIVE
06:38:46.644 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb842b16, /127.0.0.1:54298 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.645 [nioEventLoopGroup-171-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-171-1
06:38:46.666 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.679 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.680 [nioEventLoopGroup-164-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:46.681 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.681 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 => /127.0.0.1:34664] FLUSH
06:38:46.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.682 [nioEventLoopGroup-172-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-172-1
06:38:46.682 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 => /127.0.0.1:34664] FLUSH
06:38:46.682 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 :> /127.0.0.1:34664] INACTIVE
06:38:46.682 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31fc0a67, /127.0.0.1:54304 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.682 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.687 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.692 [nioEventLoopGroup-164-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:46.695 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.695 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 => /127.0.0.1:34664] FLUSH
06:38:46.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.702 [nioEventLoopGroup-173-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-173-1
06:38:46.702 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 => /127.0.0.1:34664] FLUSH
06:38:46.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.714 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 :> /127.0.0.1:34664] INACTIVE
06:38:46.715 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 :> /127.0.0.1:43746] FLUSH
06:38:46.716 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0502de19, /127.0.0.1:54308 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.716 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 :> /127.0.0.1:43746] INACTIVE
06:38:46.716 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31008074, /127.0.0.1:58400 :> /127.0.0.1:43746] UNREGISTERED
06:38:46.716 [nioEventLoopGroup-148-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-16
06:38:46.718 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.719 [nioEventLoopGroup-164-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:46.719 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.720 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 => /127.0.0.1:34664] FLUSH
06:38:46.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.721 [nioEventLoopGroup-174-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-174-1
06:38:46.722 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 => /127.0.0.1:34664] FLUSH
06:38:46.722 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 :> /127.0.0.1:34664] INACTIVE
06:38:46.722 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x811e036a, /127.0.0.1:54314 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.726 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.730 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.731 [nioEventLoopGroup-164-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:46.731 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.732 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 => /127.0.0.1:34664] FLUSH
06:38:46.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.733 [nioEventLoopGroup-175-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-175-1
06:38:46.733 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 => /127.0.0.1:34664] FLUSH
06:38:46.733 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 :> /127.0.0.1:34664] INACTIVE
06:38:46.733 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b40da2c, /127.0.0.1:54316 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.740 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.741 [nioEventLoopGroup-164-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:46.741 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.741 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 => /127.0.0.1:34664] FLUSH
06:38:46.741 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.742 [nioEventLoopGroup-176-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-176-1
06:38:46.742 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 => /127.0.0.1:34664] FLUSH
06:38:46.742 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 :> /127.0.0.1:34664] INACTIVE
06:38:46.742 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb70cb1, /127.0.0.1:54320 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:46.775 [nioEventLoopGroup-132-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-14
06:38:46.775 [nioEventLoopGroup-132-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-15
06:38:46.784 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 => /127.0.0.1:34664] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:46.799 [nioEventLoopGroup-164-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:46.800 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.800 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 => /127.0.0.1:34664] FLUSH
06:38:46.801 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.801 [nioEventLoopGroup-177-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-177-1
06:38:46.801 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 => /127.0.0.1:34664] FLUSH
06:38:46.801 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 :> /127.0.0.1:34664] INACTIVE
06:38:46.802 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42d75db7, /127.0.0.1:54324 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.816 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f114d19, /127.0.0.1:54334 => /127.0.0.1:34664] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34664
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:46.817 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.817 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.818 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:46.819 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.819 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.820 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.821 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.822 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.823 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.824 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:46.825 [nioEventLoopGroup-164-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:46.825 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f114d19, /127.0.0.1:54334 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.826 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f114d19, /127.0.0.1:54334 => /127.0.0.1:34664] FLUSH
06:38:46.836 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6180854b, /127.0.0.1:54338 => /127.0.0.1:34664] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34664
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:46.836 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.837 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.838 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:46.839 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.840 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.842 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.842 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.843 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.844 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:46.847 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:46.848 [nioEventLoopGroup-164-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34664" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:46.848 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6180854b, /127.0.0.1:54338 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.849 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6180854b, /127.0.0.1:54338 => /127.0.0.1:34664] FLUSH
06:38:46.850 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:46.869 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 => /127.0.0.1:34664] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34664
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:46.870 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 => /127.0.0.1:34664] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:46.870 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 => /127.0.0.1:34664] FLUSH
06:38:46.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:46.871 [nioEventLoopGroup-178-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-178-1
06:38:46.871 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 => /127.0.0.1:34664] CLOSE()
06:38:46.891 [nioEventLoopGroup-164-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-10
06:38:46.891 [nioEventLoopGroup-164-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-6
06:38:46.891 [nioEventLoopGroup-164-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-5
06:38:46.891 [nioEventLoopGroup-164-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-1
06:38:46.891 [nioEventLoopGroup-164-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-3
06:38:46.891 [nioEventLoopGroup-164-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-7
06:38:46.891 [nioEventLoopGroup-164-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-2
06:38:46.891 [nioEventLoopGroup-164-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-8
06:38:46.891 [nioEventLoopGroup-164-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-11
06:38:46.891 [nioEventLoopGroup-164-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-9
06:38:46.891 [nioEventLoopGroup-164-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-12
06:38:46.891 [nioEventLoopGroup-164-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-13
06:38:46.891 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f114d19, /127.0.0.1:54334 :> /127.0.0.1:34664] INACTIVE
06:38:46.891 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6180854b, /127.0.0.1:54338 :> /127.0.0.1:34664] INACTIVE
06:38:46.892 [nioEventLoopGroup-164-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-4
06:38:46.892 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6180854b, /127.0.0.1:54338 :> /127.0.0.1:34664] UNREGISTERED
06:38:46.892 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f114d19, /127.0.0.1:54334 :> /127.0.0.1:34664] UNREGISTERED
06:38:47.217 [nioEventLoopGroup-148-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-14
06:38:47.217 [nioEventLoopGroup-148-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-15
06:38:47.242 [MockServer thread for port: 40692] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40692
06:38:47.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.248 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.252 [nioEventLoopGroup-180-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:47.252 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.256 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 => /127.0.0.1:40692] FLUSH
06:38:47.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.257 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 => /127.0.0.1:40692] FLUSH
06:38:47.257 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 :> /127.0.0.1:40692] INACTIVE
06:38:47.257 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd1ebcd, /127.0.0.1:53634 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.258 [nioEventLoopGroup-181-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-181-1
06:38:47.259 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.271 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.272 [nioEventLoopGroup-180-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:47.273 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.273 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 => /127.0.0.1:40692] FLUSH
06:38:47.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.273 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 => /127.0.0.1:40692] FLUSH
06:38:47.273 [nioEventLoopGroup-182-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-182-1
06:38:47.273 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 :> /127.0.0.1:40692] INACTIVE
06:38:47.273 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebb24ca, /127.0.0.1:53636 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.279 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.280 [nioEventLoopGroup-180-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:47.281 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.281 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 => /127.0.0.1:40692] FLUSH
06:38:47.281 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.281 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 => /127.0.0.1:40692] FLUSH
06:38:47.281 [nioEventLoopGroup-183-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-183-1
06:38:47.281 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 :> /127.0.0.1:40692] INACTIVE
06:38:47.282 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38f12261, /127.0.0.1:53640 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.286 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.287 [nioEventLoopGroup-180-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:47.287 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.287 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 => /127.0.0.1:40692] FLUSH
06:38:47.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.288 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 => /127.0.0.1:40692] FLUSH
06:38:47.288 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 :> /127.0.0.1:40692] INACTIVE
06:38:47.288 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe28c5291, /127.0.0.1:53644 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.288 [nioEventLoopGroup-184-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-184-1
06:38:47.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.291 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.292 [nioEventLoopGroup-180-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:47.292 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.292 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 => /127.0.0.1:40692] FLUSH
06:38:47.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.301 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 => /127.0.0.1:40692] FLUSH
06:38:47.301 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 :> /127.0.0.1:40692] INACTIVE
06:38:47.301 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59337343, /127.0.0.1:53646 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.301 [nioEventLoopGroup-185-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-185-1
06:38:47.303 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.306 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.307 [nioEventLoopGroup-180-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:47.308 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.308 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 => /127.0.0.1:40692] FLUSH
06:38:47.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.309 [nioEventLoopGroup-186-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-186-1
06:38:47.309 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 => /127.0.0.1:40692] FLUSH
06:38:47.309 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 :> /127.0.0.1:40692] INACTIVE
06:38:47.309 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56bac599, /127.0.0.1:53650 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.343 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.343 [nioEventLoopGroup-180-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:47.344 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.344 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 => /127.0.0.1:40692] FLUSH
06:38:47.344 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.344 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 => /127.0.0.1:40692] FLUSH
06:38:47.345 [nioEventLoopGroup-187-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-187-1
06:38:47.345 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 :> /127.0.0.1:40692] INACTIVE
06:38:47.345 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bcfc93, /127.0.0.1:53652 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.358 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.358 [nioEventLoopGroup-180-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:47.359 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.359 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 => /127.0.0.1:40692] FLUSH
06:38:47.359 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.359 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 => /127.0.0.1:40692] FLUSH
06:38:47.359 [nioEventLoopGroup-188-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-188-1
06:38:47.359 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 :> /127.0.0.1:40692] INACTIVE
06:38:47.359 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48d3a6d8, /127.0.0.1:53654 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.363 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.367 [nioEventLoopGroup-180-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:47.368 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.368 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 => /127.0.0.1:40692] FLUSH
06:38:47.368 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.369 [nioEventLoopGroup-189-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-189-1
06:38:47.369 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 => /127.0.0.1:40692] FLUSH
06:38:47.369 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 :> /127.0.0.1:40692] INACTIVE
06:38:47.369 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2e88cb4, /127.0.0.1:53658 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.374 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.375 [nioEventLoopGroup-180-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:47.375 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.375 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 => /127.0.0.1:40692] FLUSH
06:38:47.375 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.375 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 => /127.0.0.1:40692] FLUSH
06:38:47.376 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 :> /127.0.0.1:40692] INACTIVE
06:38:47.376 [nioEventLoopGroup-190-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-190-1
06:38:47.376 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022cf683, /127.0.0.1:53660 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.378 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.407 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 :> /127.0.0.1:34664] FLUSH
06:38:47.407 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 :> /127.0.0.1:34664] INACTIVE
06:38:47.407 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec17a6ec, /127.0.0.1:54340 :> /127.0.0.1:34664] UNREGISTERED
06:38:47.408 [nioEventLoopGroup-164-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-16
06:38:47.411 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.413 [nioEventLoopGroup-180-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:47.414 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.414 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 => /127.0.0.1:40692] FLUSH
06:38:47.415 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.416 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 => /127.0.0.1:40692] FLUSH
06:38:47.416 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 :> /127.0.0.1:40692] INACTIVE
06:38:47.416 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7311dd1e, /127.0.0.1:53664 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.416 [nioEventLoopGroup-191-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-191-1
06:38:47.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.442 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.444 [nioEventLoopGroup-180-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:47.444 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.444 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 => /127.0.0.1:40692] FLUSH
06:38:47.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.445 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 => /127.0.0.1:40692] FLUSH
06:38:47.445 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 :> /127.0.0.1:40692] INACTIVE
06:38:47.445 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfea3f509, /127.0.0.1:53666 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.445 [nioEventLoopGroup-192-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-192-1
06:38:47.453 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.458 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 => /127.0.0.1:40692] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.460 [nioEventLoopGroup-180-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:47.460 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.460 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 => /127.0.0.1:40692] FLUSH
06:38:47.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.466 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 => /127.0.0.1:40692] FLUSH
06:38:47.467 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 :> /127.0.0.1:40692] INACTIVE
06:38:47.467 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4482672, /127.0.0.1:53672 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.468 [nioEventLoopGroup-193-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-193-1
06:38:47.485 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe24a742, /127.0.0.1:53676 => /127.0.0.1:40692] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:40692
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:47.488 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.490 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.490 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:47.491 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.491 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.492 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.493 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.493 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.494 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.495 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.496 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:47.497 [nioEventLoopGroup-180-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:47.497 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe24a742, /127.0.0.1:53676 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:47.497 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe24a742, /127.0.0.1:53676 => /127.0.0.1:40692] FLUSH
06:38:47.511 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408d61ce, /127.0.0.1:53678 => /127.0.0.1:40692] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:40692
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:47.512 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.513 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.514 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:47.515 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.516 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.517 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.526 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.527 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.530 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.531 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:47.532 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:47.535 [nioEventLoopGroup-180-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40692" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:47.536 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408d61ce, /127.0.0.1:53678 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:47.536 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408d61ce, /127.0.0.1:53678 => /127.0.0.1:40692] FLUSH
06:38:47.537 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:47.541 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 => /127.0.0.1:40692] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40692
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:47.541 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 => /127.0.0.1:40692] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.541 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 => /127.0.0.1:40692] FLUSH
06:38:47.544 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.544 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 => /127.0.0.1:40692] CLOSE()
06:38:47.544 [nioEventLoopGroup-194-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-194-1
06:38:47.554 [nioEventLoopGroup-180-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-5
06:38:47.554 [nioEventLoopGroup-180-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-2
06:38:47.554 [nioEventLoopGroup-180-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-6
06:38:47.554 [nioEventLoopGroup-180-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-1
06:38:47.554 [nioEventLoopGroup-180-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-3
06:38:47.554 [nioEventLoopGroup-180-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-4
06:38:47.554 [nioEventLoopGroup-180-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-11
06:38:47.554 [nioEventLoopGroup-180-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-7
06:38:47.554 [nioEventLoopGroup-180-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-13
06:38:47.554 [nioEventLoopGroup-180-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-8
06:38:47.554 [nioEventLoopGroup-180-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-9
06:38:47.554 [nioEventLoopGroup-180-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-10
06:38:47.554 [nioEventLoopGroup-180-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-12
06:38:47.555 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe24a742, /127.0.0.1:53676 :> /127.0.0.1:40692] INACTIVE
06:38:47.555 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408d61ce, /127.0.0.1:53678 :> /127.0.0.1:40692] INACTIVE
06:38:47.555 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408d61ce, /127.0.0.1:53678 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.556 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe24a742, /127.0.0.1:53676 :> /127.0.0.1:40692] UNREGISTERED
06:38:47.893 [nioEventLoopGroup-164-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-15
06:38:47.893 [nioEventLoopGroup-164-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-14
06:38:47.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.906 [MockServer thread for port: 33962] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33962
06:38:47.909 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.910 [nioEventLoopGroup-196-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:47.910 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.910 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 => /127.0.0.1:33962] FLUSH
06:38:47.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.914 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 => /127.0.0.1:33962] FLUSH
06:38:47.914 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 :> /127.0.0.1:33962] INACTIVE
06:38:47.914 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c547271, /127.0.0.1:50738 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.915 [nioEventLoopGroup-197-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-197-1
06:38:47.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.923 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.925 [nioEventLoopGroup-196-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:47.925 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.925 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 => /127.0.0.1:33962] FLUSH
06:38:47.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.926 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 => /127.0.0.1:33962] FLUSH
06:38:47.926 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 :> /127.0.0.1:33962] INACTIVE
06:38:47.926 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd531452, /127.0.0.1:50740 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.926 [nioEventLoopGroup-198-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-198-1
06:38:47.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.934 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.935 [nioEventLoopGroup-196-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:47.935 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.935 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 => /127.0.0.1:33962] FLUSH
06:38:47.935 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.935 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 => /127.0.0.1:33962] FLUSH
06:38:47.935 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 :> /127.0.0.1:33962] INACTIVE
06:38:47.935 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8675e34, /127.0.0.1:50742 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.936 [nioEventLoopGroup-199-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-199-1
06:38:47.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.941 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.942 [nioEventLoopGroup-196-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:47.942 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.942 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 => /127.0.0.1:33962] FLUSH
06:38:47.942 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.943 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 => /127.0.0.1:33962] FLUSH
06:38:47.943 [nioEventLoopGroup-200-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-200-1
06:38:47.943 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 :> /127.0.0.1:33962] INACTIVE
06:38:47.943 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.944 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2e1905c, /127.0.0.1:50744 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.947 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.948 [nioEventLoopGroup-196-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:47.948 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.948 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 => /127.0.0.1:33962] FLUSH
06:38:47.948 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.948 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 => /127.0.0.1:33962] FLUSH
06:38:47.948 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 :> /127.0.0.1:33962] INACTIVE
06:38:47.948 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe6a10d, /127.0.0.1:50746 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.949 [nioEventLoopGroup-201-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-201-1
06:38:47.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.952 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.953 [nioEventLoopGroup-196-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:47.953 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.953 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 => /127.0.0.1:33962] FLUSH
06:38:47.953 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.954 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 => /127.0.0.1:33962] FLUSH
06:38:47.954 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 :> /127.0.0.1:33962] INACTIVE
06:38:47.954 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd80fb486, /127.0.0.1:50748 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.955 [nioEventLoopGroup-202-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-202-1
06:38:47.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.957 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.958 [nioEventLoopGroup-196-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:47.958 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.958 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 => /127.0.0.1:33962] FLUSH
06:38:47.959 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.959 [nioEventLoopGroup-203-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-203-1
06:38:47.960 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 => /127.0.0.1:33962] FLUSH
06:38:47.960 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 :> /127.0.0.1:33962] INACTIVE
06:38:47.960 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dddfdcd, /127.0.0.1:50750 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.961 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.971 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.972 [nioEventLoopGroup-196-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:47.972 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.972 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 => /127.0.0.1:33962] FLUSH
06:38:47.972 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.973 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 => /127.0.0.1:33962] FLUSH
06:38:47.973 [nioEventLoopGroup-204-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-204-1
06:38:47.975 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 :> /127.0.0.1:33962] INACTIVE
06:38:47.975 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46c61a83, /127.0.0.1:50754 :> /127.0.0.1:33962] UNREGISTERED
06:38:47.979 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.983 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:47.996 [nioEventLoopGroup-196-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:47.996 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:47.996 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 => /127.0.0.1:33962] FLUSH
06:38:47.997 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:47.997 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 => /127.0.0.1:33962] FLUSH
06:38:47.997 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 :> /127.0.0.1:33962] INACTIVE
06:38:47.998 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:47.999 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x658aec1f, /127.0.0.1:50756 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.000 [nioEventLoopGroup-205-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-205-1
06:38:48.003 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.004 [nioEventLoopGroup-196-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:48.005 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.005 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 => /127.0.0.1:33962] FLUSH
06:38:48.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.005 [nioEventLoopGroup-206-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-206-1
06:38:48.006 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 => /127.0.0.1:33962] FLUSH
06:38:48.006 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 :> /127.0.0.1:33962] INACTIVE
06:38:48.006 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5478fb37, /127.0.0.1:50760 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.007 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.010 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.011 [nioEventLoopGroup-196-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:48.012 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.012 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 => /127.0.0.1:33962] FLUSH
06:38:48.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.013 [nioEventLoopGroup-207-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-207-1
06:38:48.013 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 => /127.0.0.1:33962] FLUSH
06:38:48.013 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 :> /127.0.0.1:33962] INACTIVE
06:38:48.013 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd27f25c8, /127.0.0.1:50762 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.015 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.022 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.023 [nioEventLoopGroup-196-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:48.024 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.024 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 => /127.0.0.1:33962] FLUSH
06:38:48.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.025 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 => /127.0.0.1:33962] FLUSH
06:38:48.025 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 :> /127.0.0.1:33962] INACTIVE
06:38:48.025 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc358c79a, /127.0.0.1:50768 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.025 [nioEventLoopGroup-208-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-208-1
06:38:48.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.035 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 => /127.0.0.1:33962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.035 [nioEventLoopGroup-196-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.036 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.036 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 => /127.0.0.1:33962] FLUSH
06:38:48.036 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.036 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 => /127.0.0.1:33962] FLUSH
06:38:48.036 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 :> /127.0.0.1:33962] INACTIVE
06:38:48.036 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa108442f, /127.0.0.1:50770 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.036 [nioEventLoopGroup-209-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-209-1
06:38:48.052 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33962
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:48.053 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.053 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.053 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:48.054 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.054 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.054 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.054 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.054 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 :> /127.0.0.1:40692] FLUSH
06:38:48.054 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 :> /127.0.0.1:40692] INACTIVE
06:38:48.054 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdda8e9e8, /127.0.0.1:53686 :> /127.0.0.1:40692] UNREGISTERED
06:38:48.054 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:48.054 [nioEventLoopGroup-180-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-16
06:38:48.055 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:48.055 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.055 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] FLUSH
06:38:48.057 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33962
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:48.058 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.058 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.058 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:48.058 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.058 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.059 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.059 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.059 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:48.060 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:48.060 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.061 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 => /127.0.0.1:33962] FLUSH
06:38:48.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:48.069 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 => /127.0.0.1:33962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33962
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.070 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 => /127.0.0.1:33962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.070 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 => /127.0.0.1:33962] FLUSH
06:38:48.070 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.071 [nioEventLoopGroup-210-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-210-1
06:38:48.071 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 => /127.0.0.1:33962] CLOSE()
06:38:48.082 [nioEventLoopGroup-196-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-3
06:38:48.082 [nioEventLoopGroup-196-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-2
06:38:48.082 [nioEventLoopGroup-196-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-9
06:38:48.082 [nioEventLoopGroup-196-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-1
06:38:48.082 [nioEventLoopGroup-196-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-11
06:38:48.082 [nioEventLoopGroup-196-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-6
06:38:48.082 [nioEventLoopGroup-196-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-8
06:38:48.082 [nioEventLoopGroup-196-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-7
06:38:48.082 [nioEventLoopGroup-196-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-12
06:38:48.082 [nioEventLoopGroup-196-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-13
06:38:48.082 [nioEventLoopGroup-196-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-10
06:38:48.082 [nioEventLoopGroup-196-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-4
06:38:48.082 [nioEventLoopGroup-196-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-5
06:38:48.082 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 :> /127.0.0.1:33962] INACTIVE
06:38:48.082 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5278ebe2, /127.0.0.1:50774 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.426 [MockServer thread for port: 35398] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35398
06:38:48.426 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.430 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.430 [nioEventLoopGroup-212-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.431 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.431 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 => /127.0.0.1:35398] FLUSH
06:38:48.431 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.431 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 => /127.0.0.1:35398] FLUSH
06:38:48.431 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 :> /127.0.0.1:35398] INACTIVE
06:38:48.431 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29063233, /127.0.0.1:38708 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.431 [nioEventLoopGroup-213-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-213-1
06:38:48.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.434 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.435 [nioEventLoopGroup-212-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:48.435 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.435 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 => /127.0.0.1:35398] FLUSH
06:38:48.435 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.436 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 => /127.0.0.1:35398] FLUSH
06:38:48.436 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 :> /127.0.0.1:35398] INACTIVE
06:38:48.436 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e8cf7e, /127.0.0.1:38710 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.436 [nioEventLoopGroup-214-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-214-1
06:38:48.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.439 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.440 [nioEventLoopGroup-212-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:48.440 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.440 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 => /127.0.0.1:35398] FLUSH
06:38:48.440 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.440 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 => /127.0.0.1:35398] FLUSH
06:38:48.440 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 :> /127.0.0.1:35398] INACTIVE
06:38:48.440 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7eca058, /127.0.0.1:38712 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.440 [nioEventLoopGroup-215-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-215-1
06:38:48.447 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.449 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.450 [nioEventLoopGroup-212-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.450 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.450 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 => /127.0.0.1:35398] FLUSH
06:38:48.450 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.450 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 => /127.0.0.1:35398] FLUSH
06:38:48.450 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 :> /127.0.0.1:35398] INACTIVE
06:38:48.450 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd75c979, /127.0.0.1:38714 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.450 [nioEventLoopGroup-216-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-216-1
06:38:48.451 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.452 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.453 [nioEventLoopGroup-212-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:48.453 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.453 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 => /127.0.0.1:35398] FLUSH
06:38:48.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.454 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 => /127.0.0.1:35398] FLUSH
06:38:48.454 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 :> /127.0.0.1:35398] INACTIVE
06:38:48.454 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9baac958, /127.0.0.1:38716 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.455 [nioEventLoopGroup-217-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-217-1
06:38:48.455 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.464 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.465 [nioEventLoopGroup-212-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:48.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 => /127.0.0.1:35398] FLUSH
06:38:48.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 => /127.0.0.1:35398] FLUSH
06:38:48.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 :> /127.0.0.1:35398] INACTIVE
06:38:48.466 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe07db702, /127.0.0.1:38718 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.466 [nioEventLoopGroup-218-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-218-1
06:38:48.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.469 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.470 [nioEventLoopGroup-212-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:48.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 => /127.0.0.1:35398] FLUSH
06:38:48.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 => /127.0.0.1:35398] FLUSH
06:38:48.470 [nioEventLoopGroup-219-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-219-1
06:38:48.472 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 :> /127.0.0.1:35398] INACTIVE
06:38:48.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.472 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49d7d7bb, /127.0.0.1:38720 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.474 [nioEventLoopGroup-212-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:48.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 => /127.0.0.1:35398] FLUSH
06:38:48.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.475 [nioEventLoopGroup-220-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-220-1
06:38:48.475 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 => /127.0.0.1:35398] FLUSH
06:38:48.475 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 :> /127.0.0.1:35398] INACTIVE
06:38:48.475 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac1dd6ca, /127.0.0.1:38724 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.480 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.481 [nioEventLoopGroup-212-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:48.481 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.481 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 => /127.0.0.1:35398] FLUSH
06:38:48.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.482 [nioEventLoopGroup-221-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-221-1
06:38:48.482 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 => /127.0.0.1:35398] FLUSH
06:38:48.482 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 :> /127.0.0.1:35398] INACTIVE
06:38:48.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.483 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca44ea52, /127.0.0.1:38728 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.485 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.486 [nioEventLoopGroup-212-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:48.486 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.486 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 => /127.0.0.1:35398] FLUSH
06:38:48.487 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.487 [nioEventLoopGroup-222-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-222-1
06:38:48.487 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 => /127.0.0.1:35398] FLUSH
06:38:48.487 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 :> /127.0.0.1:35398] INACTIVE
06:38:48.487 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x017b613a, /127.0.0.1:38732 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.493 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.493 [nioEventLoopGroup-212-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:48.493 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.494 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 => /127.0.0.1:35398] FLUSH
06:38:48.494 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.494 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 => /127.0.0.1:35398] FLUSH
06:38:48.494 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 :> /127.0.0.1:35398] INACTIVE
06:38:48.494 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9741c965, /127.0.0.1:38736 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.494 [nioEventLoopGroup-223-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-223-1
06:38:48.495 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.498 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.499 [nioEventLoopGroup-212-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:48.499 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.499 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 => /127.0.0.1:35398] FLUSH
06:38:48.500 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.500 [nioEventLoopGroup-224-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-224-1
06:38:48.500 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 => /127.0.0.1:35398] FLUSH
06:38:48.500 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 :> /127.0.0.1:35398] INACTIVE
06:38:48.500 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf185e2ca, /127.0.0.1:38740 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.514 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.517 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 => /127.0.0.1:35398] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.518 [nioEventLoopGroup-212-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.518 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.518 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 => /127.0.0.1:35398] FLUSH
06:38:48.522 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.522 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 => /127.0.0.1:35398] FLUSH
06:38:48.522 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 :> /127.0.0.1:35398] INACTIVE
06:38:48.522 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x125b3b2e, /127.0.0.1:38746 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.523 [nioEventLoopGroup-225-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-225-1
06:38:48.526 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35398
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:48.527 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.527 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.527 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:48.527 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.528 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.528 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.530 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.530 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.530 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:48.531 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:48.531 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.531 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] FLUSH
06:38:48.533 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35398
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:48.533 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.534 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.535 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:48.536 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.537 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.537 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.540 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.541 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:48.542 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:48.543 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35398" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:48.543 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.544 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 => /127.0.0.1:35398] FLUSH
06:38:48.544 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:48.547 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 => /127.0.0.1:35398] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35398
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:48.548 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 => /127.0.0.1:35398] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.548 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 => /127.0.0.1:35398] FLUSH
06:38:48.548 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 => /127.0.0.1:35398] CLOSE()
06:38:48.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.549 [nioEventLoopGroup-226-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-226-1
06:38:48.550 [nioEventLoopGroup-212-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-6
06:38:48.550 [nioEventLoopGroup-212-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-1
06:38:48.550 [nioEventLoopGroup-212-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-2
06:38:48.550 [nioEventLoopGroup-212-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-7
06:38:48.550 [nioEventLoopGroup-212-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-3
06:38:48.550 [nioEventLoopGroup-212-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-8
06:38:48.550 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 :> /127.0.0.1:35398] INACTIVE
06:38:48.550 [nioEventLoopGroup-212-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-5
06:38:48.550 [nioEventLoopGroup-212-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-13
06:38:48.550 [nioEventLoopGroup-212-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-4
06:38:48.550 [nioEventLoopGroup-212-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-12
06:38:48.550 [nioEventLoopGroup-212-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-9
06:38:48.550 [nioEventLoopGroup-212-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-10
06:38:48.550 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d46792, /127.0.0.1:38750 :> /127.0.0.1:35398] UNREGISTERED
06:38:48.550 [nioEventLoopGroup-212-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-11
06:38:48.557 [nioEventLoopGroup-180-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-14
06:38:48.557 [nioEventLoopGroup-180-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-15
06:38:48.582 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 :> /127.0.0.1:33962] FLUSH
06:38:48.582 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 :> /127.0.0.1:33962] INACTIVE
06:38:48.582 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf353220, /127.0.0.1:50782 :> /127.0.0.1:33962] UNREGISTERED
06:38:48.583 [nioEventLoopGroup-196-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-15
06:38:48.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.911 [MockServer thread for port: 35140] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35140
06:38:48.913 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.914 [nioEventLoopGroup-228-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.914 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.915 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 => /127.0.0.1:35140] FLUSH
06:38:48.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.917 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 => /127.0.0.1:35140] FLUSH
06:38:48.917 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 :> /127.0.0.1:35140] INACTIVE
06:38:48.917 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123265d3, /127.0.0.1:57272 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.917 [nioEventLoopGroup-229-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-229-1
06:38:48.918 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.923 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.924 [nioEventLoopGroup-228-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:48.924 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.925 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 => /127.0.0.1:35140] FLUSH
06:38:48.925 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.925 [nioEventLoopGroup-230-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-230-1
06:38:48.925 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 => /127.0.0.1:35140] FLUSH
06:38:48.925 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 :> /127.0.0.1:35140] INACTIVE
06:38:48.925 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854739bc, /127.0.0.1:57274 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.927 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.935 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.936 [nioEventLoopGroup-228-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:48.936 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.936 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 => /127.0.0.1:35140] FLUSH
06:38:48.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.937 [nioEventLoopGroup-231-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-231-1
06:38:48.938 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 => /127.0.0.1:35140] FLUSH
06:38:48.938 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 :> /127.0.0.1:35140] INACTIVE
06:38:48.938 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3d3d32, /127.0.0.1:57276 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.947 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.949 [nioEventLoopGroup-228-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:48.949 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.949 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 => /127.0.0.1:35140] FLUSH
06:38:48.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.950 [nioEventLoopGroup-232-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-232-1
06:38:48.951 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 => /127.0.0.1:35140] FLUSH
06:38:48.951 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 :> /127.0.0.1:35140] INACTIVE
06:38:48.951 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5fe4317, /127.0.0.1:57278 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.954 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.956 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.958 [nioEventLoopGroup-228-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:48.958 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.959 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 => /127.0.0.1:35140] FLUSH
06:38:48.959 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 => /127.0.0.1:35140] FLUSH
06:38:48.959 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 :> /127.0.0.1:35140] INACTIVE
06:38:48.959 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3251c4b1, /127.0.0.1:57282 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.959 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.959 [nioEventLoopGroup-233-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-233-1
06:38:48.962 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.968 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.969 [nioEventLoopGroup-228-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:48.970 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.970 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 => /127.0.0.1:35140] FLUSH
06:38:48.971 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:48.971 [nioEventLoopGroup-234-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-234-1
06:38:48.971 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 => /127.0.0.1:35140] FLUSH
06:38:48.971 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 :> /127.0.0.1:35140] INACTIVE
06:38:48.971 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c94010c, /127.0.0.1:57286 :> /127.0.0.1:35140] UNREGISTERED
06:38:48.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:48.988 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:48.988 [nioEventLoopGroup-228-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:48.992 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:48.993 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 => /127.0.0.1:35140] FLUSH
06:38:49.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.002 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.003 [nioEventLoopGroup-235-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-235-1
06:38:49.003 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 => /127.0.0.1:35140] FLUSH
06:38:49.004 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 :> /127.0.0.1:35140] INACTIVE
06:38:49.004 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfb76894, /127.0.0.1:57290 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.007 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.008 [nioEventLoopGroup-228-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:49.008 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.008 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 => /127.0.0.1:35140] FLUSH
06:38:49.009 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 => /127.0.0.1:35140] FLUSH
06:38:49.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.009 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 :> /127.0.0.1:35140] INACTIVE
06:38:49.009 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x759a0305, /127.0.0.1:57294 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.009 [nioEventLoopGroup-236-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-236-1
06:38:49.011 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.014 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.016 [nioEventLoopGroup-228-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:49.016 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.016 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 => /127.0.0.1:35140] FLUSH
06:38:49.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.017 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 => /127.0.0.1:35140] FLUSH
06:38:49.017 [nioEventLoopGroup-237-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-237-1
06:38:49.017 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 :> /127.0.0.1:35140] INACTIVE
06:38:49.017 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7380eb, /127.0.0.1:57298 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.023 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.024 [nioEventLoopGroup-228-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:49.024 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.025 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 => /127.0.0.1:35140] FLUSH
06:38:49.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.025 [nioEventLoopGroup-238-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-238-1
06:38:49.026 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 => /127.0.0.1:35140] FLUSH
06:38:49.026 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 :> /127.0.0.1:35140] INACTIVE
06:38:49.026 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16f57f44, /127.0.0.1:57302 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.039 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.039 [nioEventLoopGroup-228-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:49.039 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.040 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 => /127.0.0.1:35140] FLUSH
06:38:49.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.040 [nioEventLoopGroup-239-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-239-1
06:38:49.040 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 => /127.0.0.1:35140] FLUSH
06:38:49.040 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 :> /127.0.0.1:35140] INACTIVE
06:38:49.040 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85577b02, /127.0.0.1:57304 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.041 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.050 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 :> /127.0.0.1:35398] FLUSH
06:38:49.050 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 :> /127.0.0.1:35398] INACTIVE
06:38:49.050 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3645ab8b, /127.0.0.1:38756 :> /127.0.0.1:35398] UNREGISTERED
06:38:49.051 [nioEventLoopGroup-212-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-15
06:38:49.056 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.057 [nioEventLoopGroup-228-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:49.057 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.058 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 => /127.0.0.1:35140] FLUSH
06:38:49.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.059 [nioEventLoopGroup-240-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-240-1
06:38:49.061 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 => /127.0.0.1:35140] FLUSH
06:38:49.061 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 :> /127.0.0.1:35140] INACTIVE
06:38:49.061 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96ccdb7f, /127.0.0.1:57308 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.068 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.084 [nioEventLoopGroup-196-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-14
06:38:49.086 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 => /127.0.0.1:35140] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.087 [nioEventLoopGroup-228-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.087 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.087 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 => /127.0.0.1:35140] FLUSH
06:38:49.087 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.087 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 => /127.0.0.1:35140] FLUSH
06:38:49.087 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 :> /127.0.0.1:35140] INACTIVE
06:38:49.087 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf743a61d, /127.0.0.1:57312 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.087 [nioEventLoopGroup-241-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-241-1
06:38:49.093 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35140
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:49.094 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.094 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.095 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.096 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:49.096 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:49.096 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.096 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] FLUSH
06:38:49.098 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35140
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:49.099 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.100 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.100 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:49.100 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.100 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.100 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.101 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.101 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.101 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.101 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:49.101 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35140" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:49.101 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.101 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 => /127.0.0.1:35140] FLUSH
06:38:49.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:49.104 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 => /127.0.0.1:35140] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35140
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.104 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 => /127.0.0.1:35140] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.104 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 => /127.0.0.1:35140] FLUSH
06:38:49.104 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 => /127.0.0.1:35140] CLOSE()
06:38:49.104 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.106 [nioEventLoopGroup-228-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-8
06:38:49.106 [nioEventLoopGroup-228-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-7
06:38:49.106 [nioEventLoopGroup-228-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-2
06:38:49.106 [nioEventLoopGroup-228-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-1
06:38:49.107 [nioEventLoopGroup-228-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-3
06:38:49.107 [nioEventLoopGroup-228-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-10
06:38:49.107 [nioEventLoopGroup-228-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-4
06:38:49.107 [nioEventLoopGroup-228-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-5
06:38:49.107 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 :> /127.0.0.1:35140] INACTIVE
06:38:49.107 [nioEventLoopGroup-228-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-6
06:38:49.107 [nioEventLoopGroup-228-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-9
06:38:49.107 [nioEventLoopGroup-228-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-11
06:38:49.107 [nioEventLoopGroup-228-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-12
06:38:49.107 [nioEventLoopGroup-228-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-13
06:38:49.112 [nioEventLoopGroup-242-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-242-1
06:38:49.150 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc6caab1, /127.0.0.1:57314 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.468 [MockServer thread for port: 43321] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43321
06:38:49.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.471 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.471 [nioEventLoopGroup-244-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.471 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.472 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 => /127.0.0.1:43321] FLUSH
06:38:49.473 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.473 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 => /127.0.0.1:43321] FLUSH
06:38:49.473 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 :> /127.0.0.1:43321] INACTIVE
06:38:49.473 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa6c73a, /127.0.0.1:53116 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.474 [nioEventLoopGroup-245-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-245-1
06:38:49.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.476 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.478 [nioEventLoopGroup-244-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:49.478 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.478 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 => /127.0.0.1:43321] FLUSH
06:38:49.479 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 => /127.0.0.1:43321] FLUSH
06:38:49.479 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.479 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 :> /127.0.0.1:43321] INACTIVE
06:38:49.479 [nioEventLoopGroup-246-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-246-1
06:38:49.479 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a6a761c, /127.0.0.1:53118 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.481 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.482 [nioEventLoopGroup-244-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:49.483 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.483 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 => /127.0.0.1:43321] FLUSH
06:38:49.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.483 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 => /127.0.0.1:43321] FLUSH
06:38:49.483 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 :> /127.0.0.1:43321] INACTIVE
06:38:49.483 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf79ea40f, /127.0.0.1:53120 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.483 [nioEventLoopGroup-247-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-247-1
06:38:49.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.485 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.486 [nioEventLoopGroup-244-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.486 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.486 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 => /127.0.0.1:43321] FLUSH
06:38:49.486 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.486 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 => /127.0.0.1:43321] FLUSH
06:38:49.486 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 :> /127.0.0.1:43321] INACTIVE
06:38:49.486 [nioEventLoopGroup-248-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-248-1
06:38:49.490 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76d66ec4, /127.0.0.1:53122 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.492 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.492 [nioEventLoopGroup-244-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:49.492 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.492 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 => /127.0.0.1:43321] FLUSH
06:38:49.492 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.492 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 => /127.0.0.1:43321] FLUSH
06:38:49.493 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 :> /127.0.0.1:43321] INACTIVE
06:38:49.493 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6631924d, /127.0.0.1:53124 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.493 [nioEventLoopGroup-249-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-249-1
06:38:49.493 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.495 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.496 [nioEventLoopGroup-244-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:49.496 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.496 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 => /127.0.0.1:43321] FLUSH
06:38:49.496 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.496 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 => /127.0.0.1:43321] FLUSH
06:38:49.497 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 :> /127.0.0.1:43321] INACTIVE
06:38:49.497 [nioEventLoopGroup-250-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-250-1
06:38:49.497 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa6c1322, /127.0.0.1:53126 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.498 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.500 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.501 [nioEventLoopGroup-244-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:49.501 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.501 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 => /127.0.0.1:43321] FLUSH
06:38:49.501 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.502 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 => /127.0.0.1:43321] FLUSH
06:38:49.502 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 :> /127.0.0.1:43321] INACTIVE
06:38:49.502 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77bb37e9, /127.0.0.1:53130 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.502 [nioEventLoopGroup-251-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-251-1
06:38:49.503 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.506 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.507 [nioEventLoopGroup-244-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:49.507 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.507 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 => /127.0.0.1:43321] FLUSH
06:38:49.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.508 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 => /127.0.0.1:43321] FLUSH
06:38:49.508 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 :> /127.0.0.1:43321] INACTIVE
06:38:49.508 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1dd99b9, /127.0.0.1:53132 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.509 [nioEventLoopGroup-252-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-252-1
06:38:49.510 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.514 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.515 [nioEventLoopGroup-244-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:49.515 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.515 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 => /127.0.0.1:43321] FLUSH
06:38:49.515 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.516 [nioEventLoopGroup-253-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-253-1
06:38:49.516 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 => /127.0.0.1:43321] FLUSH
06:38:49.516 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 :> /127.0.0.1:43321] INACTIVE
06:38:49.516 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4e0a2f4, /127.0.0.1:53136 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.516 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.519 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.520 [nioEventLoopGroup-244-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:49.520 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.520 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 => /127.0.0.1:43321] FLUSH
06:38:49.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.521 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 => /127.0.0.1:43321] FLUSH
06:38:49.521 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 :> /127.0.0.1:43321] INACTIVE
06:38:49.521 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f81e7eb, /127.0.0.1:53140 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.521 [nioEventLoopGroup-254-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-254-1
06:38:49.521 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.523 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.524 [nioEventLoopGroup-244-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:49.524 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.524 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 => /127.0.0.1:43321] FLUSH
06:38:49.524 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.524 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 => /127.0.0.1:43321] FLUSH
06:38:49.525 [nioEventLoopGroup-255-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-255-1
06:38:49.526 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 :> /127.0.0.1:43321] INACTIVE
06:38:49.526 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0df29eb, /127.0.0.1:53144 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.526 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.530 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.531 [nioEventLoopGroup-244-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:49.532 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.532 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 => /127.0.0.1:43321] FLUSH
06:38:49.532 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.532 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 => /127.0.0.1:43321] FLUSH
06:38:49.532 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 :> /127.0.0.1:43321] INACTIVE
06:38:49.532 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af1dc66, /127.0.0.1:53148 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.532 [nioEventLoopGroup-256-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-256-1
06:38:49.533 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.535 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 => /127.0.0.1:43321] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.536 [nioEventLoopGroup-244-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.537 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.537 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 => /127.0.0.1:43321] FLUSH
06:38:49.537 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.537 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 => /127.0.0.1:43321] FLUSH
06:38:49.537 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 :> /127.0.0.1:43321] INACTIVE
06:38:49.537 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1787d4d, /127.0.0.1:53150 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.538 [nioEventLoopGroup-257-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-257-1
06:38:49.543 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43321
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:49.543 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.543 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.544 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:49.544 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.544 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.545 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.545 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.545 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.545 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.546 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.547 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:49.547 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:49.548 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.548 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] FLUSH
06:38:49.550 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43321
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:49.550 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.551 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.551 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:49.551 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.551 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.552 [nioEventLoopGroup-212-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-14
06:38:49.552 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.552 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.552 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.552 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.552 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:49.553 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:49.553 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43321" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:49.553 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.553 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 => /127.0.0.1:43321] FLUSH
06:38:49.554 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:49.557 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 => /127.0.0.1:43321] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43321
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:49.557 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 => /127.0.0.1:43321] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.557 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 => /127.0.0.1:43321] FLUSH
06:38:49.557 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 => /127.0.0.1:43321] CLOSE()
06:38:49.557 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.558 [nioEventLoopGroup-258-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-258-1
06:38:49.571 [nioEventLoopGroup-244-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-1
06:38:49.571 [nioEventLoopGroup-244-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-2
06:38:49.572 [nioEventLoopGroup-244-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-3
06:38:49.572 [nioEventLoopGroup-244-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-4
06:38:49.572 [nioEventLoopGroup-244-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-5
06:38:49.572 [nioEventLoopGroup-244-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-7
06:38:49.572 [nioEventLoopGroup-244-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-8
06:38:49.572 [nioEventLoopGroup-244-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-9
06:38:49.572 [nioEventLoopGroup-244-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-10
06:38:49.572 [nioEventLoopGroup-244-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-11
06:38:49.572 [nioEventLoopGroup-244-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-12
06:38:49.572 [nioEventLoopGroup-244-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-13
06:38:49.572 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 :> /127.0.0.1:43321] INACTIVE
06:38:49.572 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x410b4cde, /127.0.0.1:53154 :> /127.0.0.1:43321] UNREGISTERED
06:38:49.573 [nioEventLoopGroup-244-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-6
06:38:49.610 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 :> /127.0.0.1:35140] FLUSH
06:38:49.610 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 :> /127.0.0.1:35140] INACTIVE
06:38:49.610 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc7d9764, /127.0.0.1:57320 :> /127.0.0.1:35140] UNREGISTERED
06:38:49.610 [nioEventLoopGroup-228-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-15
06:38:49.925 [MockServer thread for port: 39546] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39546
06:38:49.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.927 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.928 [nioEventLoopGroup-260-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.928 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.929 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 => /127.0.0.1:39546] FLUSH
06:38:49.929 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.929 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 => /127.0.0.1:39546] FLUSH
06:38:49.929 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 :> /127.0.0.1:39546] INACTIVE
06:38:49.929 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc2ed6d2, /127.0.0.1:47524 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.929 [nioEventLoopGroup-261-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-261-1
06:38:49.930 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.932 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.933 [nioEventLoopGroup-260-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:49.933 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.933 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 => /127.0.0.1:39546] FLUSH
06:38:49.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.933 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 => /127.0.0.1:39546] FLUSH
06:38:49.933 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 :> /127.0.0.1:39546] INACTIVE
06:38:49.933 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5af1379, /127.0.0.1:47526 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.933 [nioEventLoopGroup-262-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-262-1
06:38:49.934 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.935 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.936 [nioEventLoopGroup-260-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:49.936 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.936 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 => /127.0.0.1:39546] FLUSH
06:38:49.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.936 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 => /127.0.0.1:39546] FLUSH
06:38:49.936 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 :> /127.0.0.1:39546] INACTIVE
06:38:49.936 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86118763, /127.0.0.1:47528 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.936 [nioEventLoopGroup-263-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-263-1
06:38:49.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.938 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.939 [nioEventLoopGroup-260-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.939 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.939 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 => /127.0.0.1:39546] FLUSH
06:38:49.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.939 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 => /127.0.0.1:39546] FLUSH
06:38:49.939 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 :> /127.0.0.1:39546] INACTIVE
06:38:49.939 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0161ec67, /127.0.0.1:47530 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.939 [nioEventLoopGroup-264-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-264-1
06:38:49.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.941 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.942 [nioEventLoopGroup-260-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:49.942 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.942 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 => /127.0.0.1:39546] FLUSH
06:38:49.942 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.942 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 => /127.0.0.1:39546] FLUSH
06:38:49.942 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 :> /127.0.0.1:39546] INACTIVE
06:38:49.942 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4324a088, /127.0.0.1:47532 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.942 [nioEventLoopGroup-265-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-265-1
06:38:49.943 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.944 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.945 [nioEventLoopGroup-260-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:49.946 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.946 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 => /127.0.0.1:39546] FLUSH
06:38:49.946 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 => /127.0.0.1:39546] FLUSH
06:38:49.946 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.946 [nioEventLoopGroup-266-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-266-1
06:38:49.946 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 :> /127.0.0.1:39546] INACTIVE
06:38:49.946 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f3a7168, /127.0.0.1:47534 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.953 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.954 [nioEventLoopGroup-260-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:49.954 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.954 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 => /127.0.0.1:39546] FLUSH
06:38:49.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.955 [nioEventLoopGroup-267-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-267-1
06:38:49.955 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 => /127.0.0.1:39546] FLUSH
06:38:49.955 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 :> /127.0.0.1:39546] INACTIVE
06:38:49.955 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18cdc1d0, /127.0.0.1:47536 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.956 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.959 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.960 [nioEventLoopGroup-260-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:49.960 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.960 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 => /127.0.0.1:39546] FLUSH
06:38:49.960 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.960 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 => /127.0.0.1:39546] FLUSH
06:38:49.960 [nioEventLoopGroup-268-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-268-1
06:38:49.960 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 :> /127.0.0.1:39546] INACTIVE
06:38:49.961 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x797a208a, /127.0.0.1:47540 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.961 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.965 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.965 [nioEventLoopGroup-260-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:49.965 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.965 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 => /127.0.0.1:39546] FLUSH
06:38:49.966 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.966 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 => /127.0.0.1:39546] FLUSH
06:38:49.966 [nioEventLoopGroup-269-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-269-1
06:38:49.966 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 :> /127.0.0.1:39546] INACTIVE
06:38:49.966 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cb9ad17, /127.0.0.1:47544 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.967 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.969 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.970 [nioEventLoopGroup-260-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:49.970 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.970 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 => /127.0.0.1:39546] FLUSH
06:38:49.971 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.971 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 => /127.0.0.1:39546] FLUSH
06:38:49.971 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 :> /127.0.0.1:39546] INACTIVE
06:38:49.971 [nioEventLoopGroup-270-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-270-1
06:38:49.971 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcde8e0a, /127.0.0.1:47546 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.971 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.974 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.974 [nioEventLoopGroup-260-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:49.975 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.975 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 => /127.0.0.1:39546] FLUSH
06:38:49.975 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 => /127.0.0.1:39546] FLUSH
06:38:49.975 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.975 [nioEventLoopGroup-271-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-271-1
06:38:49.975 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 :> /127.0.0.1:39546] INACTIVE
06:38:49.976 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd101617, /127.0.0.1:47548 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.976 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.981 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.982 [nioEventLoopGroup-260-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:49.983 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.983 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 => /127.0.0.1:39546] FLUSH
06:38:49.983 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 => /127.0.0.1:39546] FLUSH
06:38:49.983 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.983 [nioEventLoopGroup-272-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-272-1
06:38:49.983 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 :> /127.0.0.1:39546] INACTIVE
06:38:49.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:49.986 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x037d500a, /127.0.0.1:47552 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.988 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 => /127.0.0.1:39546] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:49.989 [nioEventLoopGroup-260-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:49.989 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:49.989 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 => /127.0.0.1:39546] FLUSH
06:38:49.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:49.989 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 => /127.0.0.1:39546] FLUSH
06:38:49.990 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 :> /127.0.0.1:39546] INACTIVE
06:38:49.990 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf5c5745, /127.0.0.1:47556 :> /127.0.0.1:39546] UNREGISTERED
06:38:49.990 [nioEventLoopGroup-273-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-273-1
06:38:50.001 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58c67181, /127.0.0.1:47560 => /127.0.0.1:39546] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:39546
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.002 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.002 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.002 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.002 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.002 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.003 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.003 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.003 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:50.003 [nioEventLoopGroup-260-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.003 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58c67181, /127.0.0.1:47560 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.004 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58c67181, /127.0.0.1:47560 => /127.0.0.1:39546] FLUSH
06:38:50.008 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x898c1fda, /127.0.0.1:47564 => /127.0.0.1:39546] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:39546
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.008 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.009 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.009 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.009 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.009 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.009 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.010 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.010 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:50.010 [nioEventLoopGroup-260-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39546" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.011 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x898c1fda, /127.0.0.1:47564 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.011 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x898c1fda, /127.0.0.1:47564 => /127.0.0.1:39546] FLUSH
06:38:50.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:50.014 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 => /127.0.0.1:39546] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39546
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.014 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 => /127.0.0.1:39546] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.014 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 => /127.0.0.1:39546] FLUSH
06:38:50.014 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 => /127.0.0.1:39546] CLOSE()
06:38:50.015 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.015 [nioEventLoopGroup-274-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-274-1
06:38:50.018 [nioEventLoopGroup-260-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-3
06:38:50.018 [nioEventLoopGroup-260-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-7
06:38:50.018 [nioEventLoopGroup-260-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-9
06:38:50.018 [nioEventLoopGroup-260-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-2
06:38:50.018 [nioEventLoopGroup-260-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-6
06:38:50.019 [nioEventLoopGroup-260-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-11
06:38:50.019 [nioEventLoopGroup-260-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-8
06:38:50.019 [nioEventLoopGroup-260-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-12
06:38:50.019 [nioEventLoopGroup-260-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-4
06:38:50.019 [nioEventLoopGroup-260-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-10
06:38:50.019 [nioEventLoopGroup-260-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-5
06:38:50.019 [nioEventLoopGroup-260-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-13
06:38:50.019 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58c67181, /127.0.0.1:47560 :> /127.0.0.1:39546] INACTIVE
06:38:50.019 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x898c1fda, /127.0.0.1:47564 :> /127.0.0.1:39546] INACTIVE
06:38:50.019 [nioEventLoopGroup-260-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-1
06:38:50.020 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x898c1fda, /127.0.0.1:47564 :> /127.0.0.1:39546] UNREGISTERED
06:38:50.020 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58c67181, /127.0.0.1:47560 :> /127.0.0.1:39546] UNREGISTERED
06:38:50.072 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 :> /127.0.0.1:43321] FLUSH
06:38:50.073 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 :> /127.0.0.1:43321] INACTIVE
06:38:50.073 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8195be6e, /127.0.0.1:53156 :> /127.0.0.1:43321] UNREGISTERED
06:38:50.073 [nioEventLoopGroup-244-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-15
06:38:50.151 [nioEventLoopGroup-228-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-14
06:38:50.368 [MockServer thread for port: 39401] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39401
06:38:50.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.370 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.371 [nioEventLoopGroup-276-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.371 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.371 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 => /127.0.0.1:39401] FLUSH
06:38:50.372 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.372 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 => /127.0.0.1:39401] FLUSH
06:38:50.372 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 :> /127.0.0.1:39401] INACTIVE
06:38:50.372 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33d174aa, /127.0.0.1:41198 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.372 [nioEventLoopGroup-277-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-277-1
06:38:50.372 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.374 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.374 [nioEventLoopGroup-276-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:50.375 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.375 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 => /127.0.0.1:39401] FLUSH
06:38:50.375 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.375 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 => /127.0.0.1:39401] FLUSH
06:38:50.375 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 :> /127.0.0.1:39401] INACTIVE
06:38:50.375 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09621a38, /127.0.0.1:41200 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.375 [nioEventLoopGroup-278-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-278-1
06:38:50.375 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.377 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.377 [nioEventLoopGroup-276-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:50.378 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.378 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 => /127.0.0.1:39401] FLUSH
06:38:50.378 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.378 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 => /127.0.0.1:39401] FLUSH
06:38:50.378 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 :> /127.0.0.1:39401] INACTIVE
06:38:50.378 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a2c0334, /127.0.0.1:41202 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.378 [nioEventLoopGroup-279-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-279-1
06:38:50.379 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.380 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.381 [nioEventLoopGroup-276-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.381 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.381 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 => /127.0.0.1:39401] FLUSH
06:38:50.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.381 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 => /127.0.0.1:39401] FLUSH
06:38:50.381 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 :> /127.0.0.1:39401] INACTIVE
06:38:50.381 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9da2890, /127.0.0.1:41204 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.381 [nioEventLoopGroup-280-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-280-1
06:38:50.382 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.383 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.384 [nioEventLoopGroup-276-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:50.384 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.384 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 => /127.0.0.1:39401] FLUSH
06:38:50.384 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.384 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 => /127.0.0.1:39401] FLUSH
06:38:50.384 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 :> /127.0.0.1:39401] INACTIVE
06:38:50.384 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0479d18c, /127.0.0.1:41206 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.384 [nioEventLoopGroup-281-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-281-1
06:38:50.385 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.386 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.387 [nioEventLoopGroup-276-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:50.387 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.387 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 => /127.0.0.1:39401] FLUSH
06:38:50.387 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.387 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 => /127.0.0.1:39401] FLUSH
06:38:50.388 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 :> /127.0.0.1:39401] INACTIVE
06:38:50.388 [nioEventLoopGroup-282-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-282-1
06:38:50.388 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff58e333, /127.0.0.1:41208 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.390 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.391 [nioEventLoopGroup-276-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:50.391 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.391 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 => /127.0.0.1:39401] FLUSH
06:38:50.391 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.391 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 => /127.0.0.1:39401] FLUSH
06:38:50.391 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 :> /127.0.0.1:39401] INACTIVE
06:38:50.391 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc11b6854, /127.0.0.1:41210 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.391 [nioEventLoopGroup-283-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-283-1
06:38:50.392 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.393 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.393 [nioEventLoopGroup-276-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:50.393 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.394 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 => /127.0.0.1:39401] FLUSH
06:38:50.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.394 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 => /127.0.0.1:39401] FLUSH
06:38:50.394 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 :> /127.0.0.1:39401] INACTIVE
06:38:50.394 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8c26c7, /127.0.0.1:41213 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.394 [nioEventLoopGroup-284-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-284-1
06:38:50.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.396 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.396 [nioEventLoopGroup-276-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:50.397 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.397 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 => /127.0.0.1:39401] FLUSH
06:38:50.397 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.397 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 => /127.0.0.1:39401] FLUSH
06:38:50.397 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 :> /127.0.0.1:39401] INACTIVE
06:38:50.397 [nioEventLoopGroup-285-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-285-1
06:38:50.397 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x288a57f6, /127.0.0.1:41214 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.397 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.399 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.399 [nioEventLoopGroup-276-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:50.399 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.400 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 => /127.0.0.1:39401] FLUSH
06:38:50.400 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.400 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 => /127.0.0.1:39401] FLUSH
06:38:50.400 [nioEventLoopGroup-286-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-286-1
06:38:50.400 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 :> /127.0.0.1:39401] INACTIVE
06:38:50.400 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x972bde01, /127.0.0.1:41216 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.400 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.402 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.403 [nioEventLoopGroup-276-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:50.403 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.403 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 => /127.0.0.1:39401] FLUSH
06:38:50.403 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.403 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 => /127.0.0.1:39401] FLUSH
06:38:50.403 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 :> /127.0.0.1:39401] INACTIVE
06:38:50.403 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c2463fb, /127.0.0.1:41218 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.403 [nioEventLoopGroup-287-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-287-1
06:38:50.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.406 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.406 [nioEventLoopGroup-276-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:50.407 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.407 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 => /127.0.0.1:39401] FLUSH
06:38:50.407 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.407 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 => /127.0.0.1:39401] FLUSH
06:38:50.407 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 :> /127.0.0.1:39401] INACTIVE
06:38:50.407 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c800f12, /127.0.0.1:41224 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.407 [nioEventLoopGroup-288-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-288-1
06:38:50.408 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.410 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 => /127.0.0.1:39401] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.411 [nioEventLoopGroup-276-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.411 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.411 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 => /127.0.0.1:39401] FLUSH
06:38:50.412 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.412 [nioEventLoopGroup-289-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-289-1
06:38:50.412 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 => /127.0.0.1:39401] FLUSH
06:38:50.412 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 :> /127.0.0.1:39401] INACTIVE
06:38:50.412 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb52d8f9d, /127.0.0.1:41228 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.417 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc135cc61, /127.0.0.1:41230 => /127.0.0.1:39401] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:39401
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.417 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.417 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.417 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.417 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.417 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.418 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.418 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.418 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.418 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:50.418 [nioEventLoopGroup-276-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.418 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc135cc61, /127.0.0.1:41230 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.418 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc135cc61, /127.0.0.1:41230 => /127.0.0.1:39401] FLUSH
06:38:50.423 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac0ddf9a, /127.0.0.1:41234 => /127.0.0.1:39401] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:39401
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.423 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.423 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.423 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.423 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.424 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.424 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.424 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.424 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.424 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:50.425 [nioEventLoopGroup-276-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39401" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.425 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac0ddf9a, /127.0.0.1:41234 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.425 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac0ddf9a, /127.0.0.1:41234 => /127.0.0.1:39401] FLUSH
06:38:50.426 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:50.428 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 => /127.0.0.1:39401] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39401
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.428 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 => /127.0.0.1:39401] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.428 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 => /127.0.0.1:39401] FLUSH
06:38:50.428 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 => /127.0.0.1:39401] CLOSE()
06:38:50.428 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.428 [nioEventLoopGroup-290-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-290-1
06:38:50.430 [nioEventLoopGroup-276-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-8
06:38:50.430 [nioEventLoopGroup-276-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-7
06:38:50.430 [nioEventLoopGroup-276-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-1
06:38:50.430 [nioEventLoopGroup-276-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-2
06:38:50.430 [nioEventLoopGroup-276-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-3
06:38:50.430 [nioEventLoopGroup-276-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-4
06:38:50.430 [nioEventLoopGroup-276-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-5
06:38:50.430 [nioEventLoopGroup-276-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-6
06:38:50.430 [nioEventLoopGroup-276-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-9
06:38:50.430 [nioEventLoopGroup-276-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-10
06:38:50.430 [nioEventLoopGroup-276-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-11
06:38:50.430 [nioEventLoopGroup-276-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-12
06:38:50.430 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc135cc61, /127.0.0.1:41230 :> /127.0.0.1:39401] INACTIVE
06:38:50.430 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac0ddf9a, /127.0.0.1:41234 :> /127.0.0.1:39401] INACTIVE
06:38:50.430 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc135cc61, /127.0.0.1:41230 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.430 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac0ddf9a, /127.0.0.1:41234 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.431 [nioEventLoopGroup-276-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-13
06:38:50.519 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 :> /127.0.0.1:39546] FLUSH
06:38:50.519 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 :> /127.0.0.1:39546] INACTIVE
06:38:50.519 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3446a072, /127.0.0.1:47568 :> /127.0.0.1:39546] UNREGISTERED
06:38:50.519 [nioEventLoopGroup-260-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-16
06:38:50.573 [nioEventLoopGroup-244-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-14
06:38:50.791 [MockServer thread for port: 42128] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42128
06:38:50.791 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.793 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.793 [nioEventLoopGroup-292-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.794 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.794 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 => /127.0.0.1:42128] FLUSH
06:38:50.794 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.794 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 => /127.0.0.1:42128] FLUSH
06:38:50.794 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 :> /127.0.0.1:42128] INACTIVE
06:38:50.794 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x19f944a8, /127.0.0.1:50320 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.794 [nioEventLoopGroup-293-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-293-1
06:38:50.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.797 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.797 [nioEventLoopGroup-292-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:50.797 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.798 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 => /127.0.0.1:42128] FLUSH
06:38:50.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.798 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 => /127.0.0.1:42128] FLUSH
06:38:50.798 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 :> /127.0.0.1:42128] INACTIVE
06:38:50.798 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ea79948, /127.0.0.1:50322 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.798 [nioEventLoopGroup-294-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-294-1
06:38:50.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.800 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.801 [nioEventLoopGroup-292-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:50.801 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.801 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 => /127.0.0.1:42128] FLUSH
06:38:50.801 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.801 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 => /127.0.0.1:42128] FLUSH
06:38:50.801 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 :> /127.0.0.1:42128] INACTIVE
06:38:50.801 [nioEventLoopGroup-295-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-295-1
06:38:50.801 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf51e0d03, /127.0.0.1:50324 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.804 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.805 [nioEventLoopGroup-292-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.805 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.805 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 => /127.0.0.1:42128] FLUSH
06:38:50.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.805 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 => /127.0.0.1:42128] FLUSH
06:38:50.805 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 :> /127.0.0.1:42128] INACTIVE
06:38:50.805 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x268c00e1, /127.0.0.1:50326 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.805 [nioEventLoopGroup-296-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-296-1
06:38:50.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.808 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.809 [nioEventLoopGroup-292-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:50.809 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.809 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 => /127.0.0.1:42128] FLUSH
06:38:50.809 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.809 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 => /127.0.0.1:42128] FLUSH
06:38:50.809 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 :> /127.0.0.1:42128] INACTIVE
06:38:50.809 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5bd508, /127.0.0.1:50328 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.809 [nioEventLoopGroup-297-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-297-1
06:38:50.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.813 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.813 [nioEventLoopGroup-292-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:50.814 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.814 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 => /127.0.0.1:42128] FLUSH
06:38:50.814 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.814 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 => /127.0.0.1:42128] FLUSH
06:38:50.814 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 :> /127.0.0.1:42128] INACTIVE
06:38:50.814 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadfd1e67, /127.0.0.1:50330 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.814 [nioEventLoopGroup-298-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-298-1
06:38:50.815 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.817 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.818 [nioEventLoopGroup-292-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:50.818 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.818 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 => /127.0.0.1:42128] FLUSH
06:38:50.818 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.818 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 => /127.0.0.1:42128] FLUSH
06:38:50.818 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 :> /127.0.0.1:42128] INACTIVE
06:38:50.818 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x731982cf, /127.0.0.1:50332 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.819 [nioEventLoopGroup-299-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-299-1
06:38:50.819 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.822 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.823 [nioEventLoopGroup-292-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:50.823 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.823 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 => /127.0.0.1:42128] FLUSH
06:38:50.838 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 => /127.0.0.1:42128] FLUSH
06:38:50.838 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.838 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 :> /127.0.0.1:42128] INACTIVE
06:38:50.838 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7c66c, /127.0.0.1:50336 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.838 [nioEventLoopGroup-300-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-300-1
06:38:50.862 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.864 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.865 [nioEventLoopGroup-292-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:50.865 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.865 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 => /127.0.0.1:42128] FLUSH
06:38:50.865 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.865 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 => /127.0.0.1:42128] FLUSH
06:38:50.866 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 :> /127.0.0.1:42128] INACTIVE
06:38:50.866 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68af6103, /127.0.0.1:50342 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.866 [nioEventLoopGroup-301-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-301-1
06:38:50.868 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.870 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.870 [nioEventLoopGroup-292-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:50.870 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.871 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 => /127.0.0.1:42128] FLUSH
06:38:50.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.871 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 => /127.0.0.1:42128] FLUSH
06:38:50.871 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 :> /127.0.0.1:42128] INACTIVE
06:38:50.871 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf360ce63, /127.0.0.1:50346 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.871 [nioEventLoopGroup-302-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-302-1
06:38:50.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.873 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.874 [nioEventLoopGroup-292-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:50.874 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.874 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 => /127.0.0.1:42128] FLUSH
06:38:50.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.874 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 => /127.0.0.1:42128] FLUSH
06:38:50.874 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 :> /127.0.0.1:42128] INACTIVE
06:38:50.874 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df0cd9, /127.0.0.1:50350 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.875 [nioEventLoopGroup-303-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-303-1
06:38:50.875 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.877 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.877 [nioEventLoopGroup-292-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:50.878 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.878 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 => /127.0.0.1:42128] FLUSH
06:38:50.878 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.878 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 => /127.0.0.1:42128] FLUSH
06:38:50.878 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 :> /127.0.0.1:42128] INACTIVE
06:38:50.878 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aa12dbb, /127.0.0.1:50354 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.878 [nioEventLoopGroup-304-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-304-1
06:38:50.880 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:50.882 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 => /127.0.0.1:42128] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:50.883 [nioEventLoopGroup-292-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:50.884 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.884 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 => /127.0.0.1:42128] FLUSH
06:38:50.884 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.884 [nioEventLoopGroup-305-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-305-1
06:38:50.886 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 => /127.0.0.1:42128] FLUSH
06:38:50.886 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 :> /127.0.0.1:42128] INACTIVE
06:38:50.886 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb107cf3e, /127.0.0.1:50358 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.889 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257a9c2f, /127.0.0.1:50362 => /127.0.0.1:42128] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:42128
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.889 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.889 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.890 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.891 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.891 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:50.891 [nioEventLoopGroup-292-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.891 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257a9c2f, /127.0.0.1:50362 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.892 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257a9c2f, /127.0.0.1:50362 => /127.0.0.1:42128] FLUSH
06:38:50.897 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25aad54f, /127.0.0.1:50368 => /127.0.0.1:42128] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:42128
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:50.897 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.897 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.897 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:50.898 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:50.899 [nioEventLoopGroup-292-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42128" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:50.899 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25aad54f, /127.0.0.1:50368 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.899 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25aad54f, /127.0.0.1:50368 => /127.0.0.1:42128] FLUSH
06:38:50.900 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:50.901 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 => /127.0.0.1:42128] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42128
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:50.902 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 => /127.0.0.1:42128] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:50.902 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 => /127.0.0.1:42128] FLUSH
06:38:50.902 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 => /127.0.0.1:42128] CLOSE()
06:38:50.902 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:50.902 [nioEventLoopGroup-306-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-306-1
06:38:50.909 [nioEventLoopGroup-292-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-5
06:38:50.909 [nioEventLoopGroup-292-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-2
06:38:50.909 [nioEventLoopGroup-292-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-8
06:38:50.909 [nioEventLoopGroup-292-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-3
06:38:50.909 [nioEventLoopGroup-292-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-6
06:38:50.909 [nioEventLoopGroup-292-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-1
06:38:50.909 [nioEventLoopGroup-292-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-4
06:38:50.909 [nioEventLoopGroup-292-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-9
06:38:50.909 [nioEventLoopGroup-292-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-10
06:38:50.909 [nioEventLoopGroup-292-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-7
06:38:50.909 [nioEventLoopGroup-292-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-11
06:38:50.909 [nioEventLoopGroup-292-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-12
06:38:50.909 [nioEventLoopGroup-292-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-13
06:38:50.909 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257a9c2f, /127.0.0.1:50362 :> /127.0.0.1:42128] INACTIVE
06:38:50.909 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25aad54f, /127.0.0.1:50368 :> /127.0.0.1:42128] INACTIVE
06:38:50.909 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257a9c2f, /127.0.0.1:50362 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.909 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25aad54f, /127.0.0.1:50368 :> /127.0.0.1:42128] UNREGISTERED
06:38:50.930 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 :> /127.0.0.1:39401] FLUSH
06:38:50.930 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 :> /127.0.0.1:39401] INACTIVE
06:38:50.930 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcc5fc7b, /127.0.0.1:41238 :> /127.0.0.1:39401] UNREGISTERED
06:38:50.930 [nioEventLoopGroup-276-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-16
06:38:51.021 [nioEventLoopGroup-260-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-14
06:38:51.021 [nioEventLoopGroup-260-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-15
06:38:51.255 [MockServer thread for port: 36457] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36457
06:38:51.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.258 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.259 [nioEventLoopGroup-308-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.259 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.259 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 => /127.0.0.1:36457] FLUSH
06:38:51.259 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.259 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 => /127.0.0.1:36457] FLUSH
06:38:51.259 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 :> /127.0.0.1:36457] INACTIVE
06:38:51.259 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a8f8feb, /127.0.0.1:35750 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.259 [nioEventLoopGroup-309-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-309-1
06:38:51.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.262 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.263 [nioEventLoopGroup-308-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:51.263 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.263 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 => /127.0.0.1:36457] FLUSH
06:38:51.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.263 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 => /127.0.0.1:36457] FLUSH
06:38:51.263 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 :> /127.0.0.1:36457] INACTIVE
06:38:51.264 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79878e54, /127.0.0.1:35752 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.264 [nioEventLoopGroup-310-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-310-1
06:38:51.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.266 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.266 [nioEventLoopGroup-308-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:51.266 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.266 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 => /127.0.0.1:36457] FLUSH
06:38:51.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.267 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 => /127.0.0.1:36457] FLUSH
06:38:51.267 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 :> /127.0.0.1:36457] INACTIVE
06:38:51.267 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc35460, /127.0.0.1:35754 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.267 [nioEventLoopGroup-311-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-311-1
06:38:51.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.269 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.270 [nioEventLoopGroup-308-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.270 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.270 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 => /127.0.0.1:36457] FLUSH
06:38:51.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.270 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 => /127.0.0.1:36457] FLUSH
06:38:51.270 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 :> /127.0.0.1:36457] INACTIVE
06:38:51.270 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9f63a0e, /127.0.0.1:35756 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.270 [nioEventLoopGroup-312-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-312-1
06:38:51.271 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.274 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.274 [nioEventLoopGroup-308-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:51.275 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.275 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 => /127.0.0.1:36457] FLUSH
06:38:51.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.275 [nioEventLoopGroup-313-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-313-1
06:38:51.276 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 => /127.0.0.1:36457] FLUSH
06:38:51.276 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 :> /127.0.0.1:36457] INACTIVE
06:38:51.276 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0040cc85, /127.0.0.1:35758 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.281 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.283 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.284 [nioEventLoopGroup-308-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:51.284 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.284 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 => /127.0.0.1:36457] FLUSH
06:38:51.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.284 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 => /127.0.0.1:36457] FLUSH
06:38:51.284 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 :> /127.0.0.1:36457] INACTIVE
06:38:51.284 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9750bd, /127.0.0.1:35764 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.285 [nioEventLoopGroup-314-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-314-1
06:38:51.285 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.287 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.288 [nioEventLoopGroup-308-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:51.289 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.289 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 => /127.0.0.1:36457] FLUSH
06:38:51.290 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.290 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 => /127.0.0.1:36457] FLUSH
06:38:51.290 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 :> /127.0.0.1:36457] INACTIVE
06:38:51.290 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ea44437, /127.0.0.1:35768 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.290 [nioEventLoopGroup-315-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-315-1
06:38:51.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.296 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.297 [nioEventLoopGroup-308-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:51.297 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.298 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 => /127.0.0.1:36457] FLUSH
06:38:51.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.298 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 => /127.0.0.1:36457] FLUSH
06:38:51.298 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 :> /127.0.0.1:36457] INACTIVE
06:38:51.298 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09d21616, /127.0.0.1:35770 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.298 [nioEventLoopGroup-316-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-316-1
06:38:51.299 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.302 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.305 [nioEventLoopGroup-308-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:51.306 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.306 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 => /127.0.0.1:36457] FLUSH
06:38:51.308 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 => /127.0.0.1:36457] FLUSH
06:38:51.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.308 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 :> /127.0.0.1:36457] INACTIVE
06:38:51.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.310 [nioEventLoopGroup-317-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-317-1
06:38:51.310 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16ff1d47, /127.0.0.1:35772 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.312 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.313 [nioEventLoopGroup-308-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:51.313 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.313 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 => /127.0.0.1:36457] FLUSH
06:38:51.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.314 [nioEventLoopGroup-318-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-318-1
06:38:51.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.315 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 => /127.0.0.1:36457] FLUSH
06:38:51.315 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 :> /127.0.0.1:36457] INACTIVE
06:38:51.315 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9c744ab, /127.0.0.1:35778 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.317 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.318 [nioEventLoopGroup-308-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:51.318 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.318 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 => /127.0.0.1:36457] FLUSH
06:38:51.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.318 [nioEventLoopGroup-319-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-319-1
06:38:51.319 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 => /127.0.0.1:36457] FLUSH
06:38:51.319 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 :> /127.0.0.1:36457] INACTIVE
06:38:51.319 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eb11459, /127.0.0.1:35782 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.323 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.325 [nioEventLoopGroup-308-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:51.325 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.325 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 => /127.0.0.1:36457] FLUSH
06:38:51.326 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.326 [nioEventLoopGroup-320-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-320-1
06:38:51.326 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 => /127.0.0.1:36457] FLUSH
06:38:51.326 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 :> /127.0.0.1:36457] INACTIVE
06:38:51.326 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e9f376f, /127.0.0.1:35786 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.331 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 => /127.0.0.1:36457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.332 [nioEventLoopGroup-308-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.333 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.333 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 => /127.0.0.1:36457] FLUSH
06:38:51.333 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.333 [nioEventLoopGroup-321-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-321-1
06:38:51.333 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 => /127.0.0.1:36457] FLUSH
06:38:51.333 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 :> /127.0.0.1:36457] INACTIVE
06:38:51.333 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d96700e, /127.0.0.1:35790 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.341 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d2a778, /127.0.0.1:35796 => /127.0.0.1:36457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:36457
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:51.342 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.342 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.343 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:51.345 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.346 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.347 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.348 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.348 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.348 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.348 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.349 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:51.349 [nioEventLoopGroup-308-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:51.349 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d2a778, /127.0.0.1:35796 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.349 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d2a778, /127.0.0.1:35796 => /127.0.0.1:36457] FLUSH
06:38:51.353 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c77e65, /127.0.0.1:35800 => /127.0.0.1:36457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:36457
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.354 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.355 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.355 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.355 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.355 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.355 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:51.356 [nioEventLoopGroup-308-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36457" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:51.356 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c77e65, /127.0.0.1:35800 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.356 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c77e65, /127.0.0.1:35800 => /127.0.0.1:36457] FLUSH
06:38:51.356 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:51.358 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 => /127.0.0.1:36457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36457
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.359 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 => /127.0.0.1:36457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.359 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 => /127.0.0.1:36457] FLUSH
06:38:51.359 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 => /127.0.0.1:36457] CLOSE()
06:38:51.359 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.359 [nioEventLoopGroup-322-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-322-1
06:38:51.365 [nioEventLoopGroup-308-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-1
06:38:51.365 [nioEventLoopGroup-308-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-2
06:38:51.365 [nioEventLoopGroup-308-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-6
06:38:51.365 [nioEventLoopGroup-308-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-3
06:38:51.365 [nioEventLoopGroup-308-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-5
06:38:51.365 [nioEventLoopGroup-308-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-7
06:38:51.365 [nioEventLoopGroup-308-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-13
06:38:51.365 [nioEventLoopGroup-308-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-11
06:38:51.365 [nioEventLoopGroup-308-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-12
06:38:51.365 [nioEventLoopGroup-308-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-4
06:38:51.365 [nioEventLoopGroup-308-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-8
06:38:51.365 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d2a778, /127.0.0.1:35796 :> /127.0.0.1:36457] INACTIVE
06:38:51.365 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c77e65, /127.0.0.1:35800 :> /127.0.0.1:36457] INACTIVE
06:38:51.365 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d2a778, /127.0.0.1:35796 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.365 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c77e65, /127.0.0.1:35800 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.365 [nioEventLoopGroup-308-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-9
06:38:51.366 [nioEventLoopGroup-308-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-10
06:38:51.409 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 :> /127.0.0.1:42128] FLUSH
06:38:51.409 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 :> /127.0.0.1:42128] INACTIVE
06:38:51.409 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce47415c, /127.0.0.1:50372 :> /127.0.0.1:42128] UNREGISTERED
06:38:51.409 [nioEventLoopGroup-292-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-16
06:38:51.432 [nioEventLoopGroup-276-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-14
06:38:51.432 [nioEventLoopGroup-276-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-15
06:38:51.716 [MockServer thread for port: 42354] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42354
06:38:51.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.717 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.718 [nioEventLoopGroup-324-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.718 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.718 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 => /127.0.0.1:42354] FLUSH
06:38:51.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.718 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 => /127.0.0.1:42354] FLUSH
06:38:51.718 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 :> /127.0.0.1:42354] INACTIVE
06:38:51.718 [nioEventLoopGroup-325-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-325-1
06:38:51.718 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98006099, /127.0.0.1:60198 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.721 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.721 [nioEventLoopGroup-324-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:51.721 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.721 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 => /127.0.0.1:42354] FLUSH
06:38:51.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.722 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 => /127.0.0.1:42354] FLUSH
06:38:51.722 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 :> /127.0.0.1:42354] INACTIVE
06:38:51.722 [nioEventLoopGroup-326-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-326-1
06:38:51.722 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacde6fde, /127.0.0.1:60200 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.724 [nioEventLoopGroup-324-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 => /127.0.0.1:42354] FLUSH
06:38:51.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 => /127.0.0.1:42354] FLUSH
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 :> /127.0.0.1:42354] INACTIVE
06:38:51.724 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37595340, /127.0.0.1:60202 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.724 [nioEventLoopGroup-327-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-327-1
06:38:51.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.726 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.727 [nioEventLoopGroup-324-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.727 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.727 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 => /127.0.0.1:42354] FLUSH
06:38:51.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.727 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 => /127.0.0.1:42354] FLUSH
06:38:51.727 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 :> /127.0.0.1:42354] INACTIVE
06:38:51.727 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1623f2db, /127.0.0.1:60204 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.727 [nioEventLoopGroup-328-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-328-1
06:38:51.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.730 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.730 [nioEventLoopGroup-324-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:51.730 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.730 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 => /127.0.0.1:42354] FLUSH
06:38:51.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.731 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 => /127.0.0.1:42354] FLUSH
06:38:51.731 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 :> /127.0.0.1:42354] INACTIVE
06:38:51.731 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b281f96, /127.0.0.1:60206 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.731 [nioEventLoopGroup-329-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-329-1
06:38:51.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.733 [nioEventLoopGroup-324-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 => /127.0.0.1:42354] FLUSH
06:38:51.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 => /127.0.0.1:42354] FLUSH
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 :> /127.0.0.1:42354] INACTIVE
06:38:51.733 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1d268cf, /127.0.0.1:60208 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.734 [nioEventLoopGroup-330-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-330-1
06:38:51.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.735 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.736 [nioEventLoopGroup-324-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:51.736 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.736 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 => /127.0.0.1:42354] FLUSH
06:38:51.736 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 => /127.0.0.1:42354] FLUSH
06:38:51.736 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.736 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 :> /127.0.0.1:42354] INACTIVE
06:38:51.736 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ec1d1ba, /127.0.0.1:60210 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.736 [nioEventLoopGroup-331-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-331-1
06:38:51.737 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.739 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.739 [nioEventLoopGroup-324-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:51.740 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.740 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 => /127.0.0.1:42354] FLUSH
06:38:51.740 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.740 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 => /127.0.0.1:42354] FLUSH
06:38:51.740 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 :> /127.0.0.1:42354] INACTIVE
06:38:51.740 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc08a89b7, /127.0.0.1:60212 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.740 [nioEventLoopGroup-332-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-332-1
06:38:51.741 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.751 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.752 [nioEventLoopGroup-324-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:51.752 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.752 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 => /127.0.0.1:42354] FLUSH
06:38:51.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.752 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 => /127.0.0.1:42354] FLUSH
06:38:51.752 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 :> /127.0.0.1:42354] INACTIVE
06:38:51.752 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c33d67, /127.0.0.1:60220 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.752 [nioEventLoopGroup-333-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-333-1
06:38:51.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.760 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.760 [nioEventLoopGroup-324-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:51.760 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.760 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 => /127.0.0.1:42354] FLUSH
06:38:51.761 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.761 [nioEventLoopGroup-334-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-334-1
06:38:51.761 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 => /127.0.0.1:42354] FLUSH
06:38:51.761 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 :> /127.0.0.1:42354] INACTIVE
06:38:51.761 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe01f253, /127.0.0.1:60224 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.765 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.766 [nioEventLoopGroup-324-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:51.766 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.766 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 => /127.0.0.1:42354] FLUSH
06:38:51.766 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.766 [nioEventLoopGroup-335-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-335-1
06:38:51.767 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 => /127.0.0.1:42354] FLUSH
06:38:51.767 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 :> /127.0.0.1:42354] INACTIVE
06:38:51.767 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ae2b555, /127.0.0.1:60228 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.771 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.772 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.773 [nioEventLoopGroup-324-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:51.774 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.774 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 => /127.0.0.1:42354] FLUSH
06:38:51.774 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.774 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 => /127.0.0.1:42354] FLUSH
06:38:51.774 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 :> /127.0.0.1:42354] INACTIVE
06:38:51.774 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7eb1442c, /127.0.0.1:60232 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.774 [nioEventLoopGroup-336-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-336-1
06:38:51.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:51.780 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 => /127.0.0.1:42354] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:51.781 [nioEventLoopGroup-324-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:51.781 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.781 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 => /127.0.0.1:42354] FLUSH
06:38:51.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.781 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 => /127.0.0.1:42354] FLUSH
06:38:51.781 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 :> /127.0.0.1:42354] INACTIVE
06:38:51.781 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa11b54de, /127.0.0.1:60236 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.781 [nioEventLoopGroup-337-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-337-1
06:38:51.784 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:42354
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:51.784 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.785 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.785 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:51.785 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.785 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.785 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.786 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.786 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:51.786 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:51.786 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.786 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] FLUSH
06:38:51.788 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:42354
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:51.788 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.788 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.788 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:51.788 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.789 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.789 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.789 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:51.789 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
06:38:51.789 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42354" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:51.789 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.789 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 => /127.0.0.1:42354] FLUSH
06:38:51.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:51.792 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 => /127.0.0.1:42354] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42354
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:51.793 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 => /127.0.0.1:42354] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:51.794 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 => /127.0.0.1:42354] FLUSH
06:38:51.794 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:51.794 [nioEventLoopGroup-338-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-338-1
06:38:51.794 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 => /127.0.0.1:42354] CLOSE()
06:38:51.796 [nioEventLoopGroup-324-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-3
06:38:51.796 [nioEventLoopGroup-324-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-1
06:38:51.796 [nioEventLoopGroup-324-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-9
06:38:51.796 [nioEventLoopGroup-324-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-7
06:38:51.796 [nioEventLoopGroup-324-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-10
06:38:51.796 [nioEventLoopGroup-324-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-4
06:38:51.796 [nioEventLoopGroup-324-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-12
06:38:51.796 [nioEventLoopGroup-324-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-13
06:38:51.797 [nioEventLoopGroup-324-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-2
06:38:51.797 [nioEventLoopGroup-324-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-5
06:38:51.797 [nioEventLoopGroup-324-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-8
06:38:51.797 [nioEventLoopGroup-324-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-11
06:38:51.798 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 :> /127.0.0.1:42354] INACTIVE
06:38:51.798 [nioEventLoopGroup-324-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-6
06:38:51.798 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12f5c1d8, /127.0.0.1:60238 :> /127.0.0.1:42354] UNREGISTERED
06:38:51.865 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 :> /127.0.0.1:36457] FLUSH
06:38:51.865 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 :> /127.0.0.1:36457] INACTIVE
06:38:51.865 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821b0207, /127.0.0.1:35802 :> /127.0.0.1:36457] UNREGISTERED
06:38:51.865 [nioEventLoopGroup-308-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-16
06:38:51.911 [nioEventLoopGroup-292-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-15
06:38:51.911 [nioEventLoopGroup-292-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-14
06:38:52.150 [MockServer thread for port: 45379] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45379
06:38:52.150 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.152 [nioEventLoopGroup-340-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 => /127.0.0.1:45379] FLUSH
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 => /127.0.0.1:45379] FLUSH
06:38:52.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 :> /127.0.0.1:45379] INACTIVE
06:38:52.152 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc426e735, /127.0.0.1:57796 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.152 [nioEventLoopGroup-341-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-341-1
06:38:52.153 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.154 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.155 [nioEventLoopGroup-340-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:52.155 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.155 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 => /127.0.0.1:45379] FLUSH
06:38:52.155 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 => /127.0.0.1:45379] FLUSH
06:38:52.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.155 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 :> /127.0.0.1:45379] INACTIVE
06:38:52.155 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29ac1084, /127.0.0.1:57798 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.155 [nioEventLoopGroup-342-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-342-1
06:38:52.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.160 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.160 [nioEventLoopGroup-340-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:52.160 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.160 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 => /127.0.0.1:45379] FLUSH
06:38:52.161 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.161 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 => /127.0.0.1:45379] FLUSH
06:38:52.161 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 :> /127.0.0.1:45379] INACTIVE
06:38:52.161 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c51bd65, /127.0.0.1:57800 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.161 [nioEventLoopGroup-343-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-343-1
06:38:52.161 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.163 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.164 [nioEventLoopGroup-340-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 => /127.0.0.1:45379] FLUSH
06:38:52.164 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 => /127.0.0.1:45379] FLUSH
06:38:52.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 :> /127.0.0.1:45379] INACTIVE
06:38:52.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c144320, /127.0.0.1:57802 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.164 [nioEventLoopGroup-344-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-344-1
06:38:52.166 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.168 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.168 [nioEventLoopGroup-340-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:52.168 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.168 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 => /127.0.0.1:45379] FLUSH
06:38:52.168 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.169 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 => /127.0.0.1:45379] FLUSH
06:38:52.169 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 :> /127.0.0.1:45379] INACTIVE
06:38:52.169 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d316afb, /127.0.0.1:57804 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.169 [nioEventLoopGroup-345-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-345-1
06:38:52.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.172 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.173 [nioEventLoopGroup-340-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:52.173 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.173 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 => /127.0.0.1:45379] FLUSH
06:38:52.173 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.173 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 => /127.0.0.1:45379] FLUSH
06:38:52.173 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 :> /127.0.0.1:45379] INACTIVE
06:38:52.173 [nioEventLoopGroup-346-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-346-1
06:38:52.173 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fb0eb5d, /127.0.0.1:57806 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.178 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.179 [nioEventLoopGroup-340-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:52.179 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.179 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 => /127.0.0.1:45379] FLUSH
06:38:52.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.179 [nioEventLoopGroup-347-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-347-1
06:38:52.179 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 => /127.0.0.1:45379] FLUSH
06:38:52.180 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 :> /127.0.0.1:45379] INACTIVE
06:38:52.180 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f57ba6, /127.0.0.1:57808 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.181 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.183 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.184 [nioEventLoopGroup-340-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:52.184 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.184 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 => /127.0.0.1:45379] FLUSH
06:38:52.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.184 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 => /127.0.0.1:45379] FLUSH
06:38:52.184 [nioEventLoopGroup-348-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-348-1
06:38:52.185 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 :> /127.0.0.1:45379] INACTIVE
06:38:52.185 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64097f4, /127.0.0.1:57812 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.186 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.189 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.189 [nioEventLoopGroup-340-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:52.189 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.190 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 => /127.0.0.1:45379] FLUSH
06:38:52.190 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 => /127.0.0.1:45379] FLUSH
06:38:52.190 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 :> /127.0.0.1:45379] INACTIVE
06:38:52.190 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.190 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ff3223, /127.0.0.1:57816 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.190 [nioEventLoopGroup-349-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-349-1
06:38:52.191 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.193 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.194 [nioEventLoopGroup-340-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:52.194 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.194 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 => /127.0.0.1:45379] FLUSH
06:38:52.194 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.194 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 => /127.0.0.1:45379] FLUSH
06:38:52.194 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 :> /127.0.0.1:45379] INACTIVE
06:38:52.194 [nioEventLoopGroup-350-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-350-1
06:38:52.194 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba248fc8, /127.0.0.1:57820 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.195 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.197 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.197 [nioEventLoopGroup-340-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:52.198 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.198 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 => /127.0.0.1:45379] FLUSH
06:38:52.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.198 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 => /127.0.0.1:45379] FLUSH
06:38:52.198 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 :> /127.0.0.1:45379] INACTIVE
06:38:52.198 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd770103, /127.0.0.1:57822 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.198 [nioEventLoopGroup-351-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-351-1
06:38:52.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.201 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.203 [nioEventLoopGroup-340-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:52.203 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.203 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 => /127.0.0.1:45379] FLUSH
06:38:52.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.204 [nioEventLoopGroup-352-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-352-1
06:38:52.204 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 => /127.0.0.1:45379] FLUSH
06:38:52.204 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 :> /127.0.0.1:45379] INACTIVE
06:38:52.204 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25e7024b, /127.0.0.1:57826 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.207 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 => /127.0.0.1:45379] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.208 [nioEventLoopGroup-340-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.209 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.209 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 => /127.0.0.1:45379] FLUSH
06:38:52.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.209 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 => /127.0.0.1:45379] FLUSH
06:38:52.209 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 :> /127.0.0.1:45379] INACTIVE
06:38:52.209 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ba4bb0, /127.0.0.1:57830 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.209 [nioEventLoopGroup-353-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-353-1
06:38:52.212 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45379
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:52.212 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.212 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.213 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:52.214 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:52.214 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.214 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] FLUSH
06:38:52.216 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45379
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:52.216 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.217 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
06:38:52.218 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45379" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:52.218 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.218 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 => /127.0.0.1:45379] FLUSH
06:38:52.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:52.220 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 => /127.0.0.1:45379] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45379
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.220 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 => /127.0.0.1:45379] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.220 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 => /127.0.0.1:45379] FLUSH
06:38:52.220 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 => /127.0.0.1:45379] CLOSE()
06:38:52.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.221 [nioEventLoopGroup-340-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-1
06:38:52.221 [nioEventLoopGroup-354-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-354-1
06:38:52.222 [nioEventLoopGroup-340-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-2
06:38:52.222 [nioEventLoopGroup-340-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-3
06:38:52.222 [nioEventLoopGroup-340-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-4
06:38:52.222 [nioEventLoopGroup-340-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-5
06:38:52.222 [nioEventLoopGroup-340-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-6
06:38:52.222 [nioEventLoopGroup-340-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-7
06:38:52.222 [nioEventLoopGroup-340-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-8
06:38:52.222 [nioEventLoopGroup-340-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-9
06:38:52.222 [nioEventLoopGroup-340-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-10
06:38:52.222 [nioEventLoopGroup-340-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-11
06:38:52.222 [nioEventLoopGroup-340-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-12
06:38:52.222 [nioEventLoopGroup-340-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-13
06:38:52.223 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 :> /127.0.0.1:45379] INACTIVE
06:38:52.223 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d495a20, /127.0.0.1:57834 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.297 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 :> /127.0.0.1:42354] FLUSH
06:38:52.297 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 :> /127.0.0.1:42354] INACTIVE
06:38:52.297 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8010bfe5, /127.0.0.1:60242 :> /127.0.0.1:42354] UNREGISTERED
06:38:52.297 [nioEventLoopGroup-324-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-15
06:38:52.366 [nioEventLoopGroup-308-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-15
06:38:52.366 [nioEventLoopGroup-308-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-14
06:38:52.601 [MockServer thread for port: 39105] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39105
06:38:52.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.606 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.607 [nioEventLoopGroup-356-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.607 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.607 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 => /127.0.0.1:39105] FLUSH
06:38:52.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.607 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 => /127.0.0.1:39105] FLUSH
06:38:52.607 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 :> /127.0.0.1:39105] INACTIVE
06:38:52.607 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc5594e2, /127.0.0.1:40444 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.607 [nioEventLoopGroup-357-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-357-1
06:38:52.609 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.610 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.611 [nioEventLoopGroup-356-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:52.611 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.611 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 => /127.0.0.1:39105] FLUSH
06:38:52.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.611 [nioEventLoopGroup-358-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-358-1
06:38:52.612 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 => /127.0.0.1:39105] FLUSH
06:38:52.612 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 :> /127.0.0.1:39105] INACTIVE
06:38:52.612 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x385b1ac1, /127.0.0.1:40446 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.615 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.615 [nioEventLoopGroup-356-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:52.615 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.615 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 => /127.0.0.1:39105] FLUSH
06:38:52.615 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.615 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 => /127.0.0.1:39105] FLUSH
06:38:52.616 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 :> /127.0.0.1:39105] INACTIVE
06:38:52.616 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39d88c7d, /127.0.0.1:40448 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.616 [nioEventLoopGroup-359-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-359-1
06:38:52.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.618 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.618 [nioEventLoopGroup-356-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.618 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.618 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 => /127.0.0.1:39105] FLUSH
06:38:52.618 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.619 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 => /127.0.0.1:39105] FLUSH
06:38:52.619 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 :> /127.0.0.1:39105] INACTIVE
06:38:52.619 [nioEventLoopGroup-360-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-360-1
06:38:52.619 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24db359b, /127.0.0.1:40450 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.619 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.621 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.622 [nioEventLoopGroup-356-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:52.622 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.622 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 => /127.0.0.1:39105] FLUSH
06:38:52.622 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.622 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 => /127.0.0.1:39105] FLUSH
06:38:52.622 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 :> /127.0.0.1:39105] INACTIVE
06:38:52.622 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28069014, /127.0.0.1:40452 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.622 [nioEventLoopGroup-361-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-361-1
06:38:52.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.625 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.625 [nioEventLoopGroup-356-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:52.625 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.625 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 => /127.0.0.1:39105] FLUSH
06:38:52.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.626 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 => /127.0.0.1:39105] FLUSH
06:38:52.626 [nioEventLoopGroup-362-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-362-1
06:38:52.626 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 :> /127.0.0.1:39105] INACTIVE
06:38:52.626 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c556631, /127.0.0.1:40454 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.626 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.631 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.632 [nioEventLoopGroup-356-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:52.632 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.632 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 => /127.0.0.1:39105] FLUSH
06:38:52.632 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.632 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 => /127.0.0.1:39105] FLUSH
06:38:52.632 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 :> /127.0.0.1:39105] INACTIVE
06:38:52.632 [nioEventLoopGroup-363-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-363-1
06:38:52.632 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e1eec29, /127.0.0.1:40456 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.633 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.634 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.634 [nioEventLoopGroup-356-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:52.634 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.634 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 => /127.0.0.1:39105] FLUSH
06:38:52.635 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.635 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 => /127.0.0.1:39105] FLUSH
06:38:52.635 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 :> /127.0.0.1:39105] INACTIVE
06:38:52.635 [nioEventLoopGroup-364-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-364-1
06:38:52.635 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0aa880, /127.0.0.1:40458 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.638 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.638 [nioEventLoopGroup-356-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:52.638 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.639 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 => /127.0.0.1:39105] FLUSH
06:38:52.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.639 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 => /127.0.0.1:39105] FLUSH
06:38:52.639 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 :> /127.0.0.1:39105] INACTIVE
06:38:52.639 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd16a6045, /127.0.0.1:40460 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.639 [nioEventLoopGroup-365-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-365-1
06:38:52.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.641 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.641 [nioEventLoopGroup-356-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:52.641 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.641 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 => /127.0.0.1:39105] FLUSH
06:38:52.641 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.641 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 => /127.0.0.1:39105] FLUSH
06:38:52.642 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 :> /127.0.0.1:39105] INACTIVE
06:38:52.642 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcf26496, /127.0.0.1:40462 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.642 [nioEventLoopGroup-366-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-366-1
06:38:52.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.643 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.644 [nioEventLoopGroup-356-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:52.644 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.644 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 => /127.0.0.1:39105] FLUSH
06:38:52.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.644 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 => /127.0.0.1:39105] FLUSH
06:38:52.644 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 :> /127.0.0.1:39105] INACTIVE
06:38:52.644 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa454a11b, /127.0.0.1:40464 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.644 [nioEventLoopGroup-367-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-367-1
06:38:52.646 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.648 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.648 [nioEventLoopGroup-356-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:52.648 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.649 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 => /127.0.0.1:39105] FLUSH
06:38:52.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.649 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 => /127.0.0.1:39105] FLUSH
06:38:52.649 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 :> /127.0.0.1:39105] INACTIVE
06:38:52.649 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37c63754, /127.0.0.1:40466 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.649 [nioEventLoopGroup-368-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-368-1
06:38:52.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 => /127.0.0.1:39105] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:52.651 [nioEventLoopGroup-356-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 => /127.0.0.1:39105] FLUSH
06:38:52.651 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 => /127.0.0.1:39105] FLUSH
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 :> /127.0.0.1:39105] INACTIVE
06:38:52.651 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x789958ed, /127.0.0.1:40468 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.651 [nioEventLoopGroup-369-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-369-1
06:38:52.653 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39105
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:52.653 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.653 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.653 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:52.653 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:52.654 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:52.654 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.654 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] FLUSH
06:38:52.656 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39105
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:52.656 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.656 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.656 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:52.657 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.657 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.657 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.657 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.658 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.658 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:52.659 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
06:38:52.659 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39105" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:52.659 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.659 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 => /127.0.0.1:39105] FLUSH
06:38:52.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:52.662 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 => /127.0.0.1:39105] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39105
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:52.663 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 => /127.0.0.1:39105] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:52.663 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 => /127.0.0.1:39105] FLUSH
06:38:52.663 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 => /127.0.0.1:39105] CLOSE()
06:38:52.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:52.664 [nioEventLoopGroup-370-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-370-1
06:38:52.665 [nioEventLoopGroup-356-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-1
06:38:52.665 [nioEventLoopGroup-356-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-7
06:38:52.665 [nioEventLoopGroup-356-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-2
06:38:52.665 [nioEventLoopGroup-356-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-3
06:38:52.666 [nioEventLoopGroup-356-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-5
06:38:52.666 [nioEventLoopGroup-356-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-6
06:38:52.666 [nioEventLoopGroup-356-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-8
06:38:52.666 [nioEventLoopGroup-356-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-9
06:38:52.666 [nioEventLoopGroup-356-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-10
06:38:52.666 [nioEventLoopGroup-356-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-11
06:38:52.666 [nioEventLoopGroup-356-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-12
06:38:52.666 [nioEventLoopGroup-356-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-13
06:38:52.666 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 :> /127.0.0.1:39105] INACTIVE
06:38:52.666 [nioEventLoopGroup-356-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-4
06:38:52.666 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbafb0375, /127.0.0.1:40470 :> /127.0.0.1:39105] UNREGISTERED
06:38:52.750 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 :> /127.0.0.1:45379] FLUSH
06:38:52.750 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 :> /127.0.0.1:45379] INACTIVE
06:38:52.750 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cf5b3b1, /127.0.0.1:57836 :> /127.0.0.1:45379] UNREGISTERED
06:38:52.750 [nioEventLoopGroup-340-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-15
06:38:52.799 [nioEventLoopGroup-324-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-14
06:38:53.017 [MockServer thread for port: 35155] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35155
06:38:53.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.019 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.019 [nioEventLoopGroup-372-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.020 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.020 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 => /127.0.0.1:35155] FLUSH
06:38:53.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.020 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 => /127.0.0.1:35155] FLUSH
06:38:53.020 [nioEventLoopGroup-373-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-373-1
06:38:53.020 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 :> /127.0.0.1:35155] INACTIVE
06:38:53.020 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x766d6629, /127.0.0.1:54722 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.021 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.022 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.022 [nioEventLoopGroup-372-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:53.023 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.023 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 => /127.0.0.1:35155] FLUSH
06:38:53.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.023 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 => /127.0.0.1:35155] FLUSH
06:38:53.023 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 :> /127.0.0.1:35155] INACTIVE
06:38:53.023 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb936e02b, /127.0.0.1:54724 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.023 [nioEventLoopGroup-374-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-374-1
06:38:53.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.025 [nioEventLoopGroup-372-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 => /127.0.0.1:35155] FLUSH
06:38:53.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 => /127.0.0.1:35155] FLUSH
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 :> /127.0.0.1:35155] INACTIVE
06:38:53.025 [nioEventLoopGroup-375-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-375-1
06:38:53.025 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc958c7c2, /127.0.0.1:54726 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.026 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.027 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.027 [nioEventLoopGroup-372-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.028 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.028 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 => /127.0.0.1:35155] FLUSH
06:38:53.028 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.028 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 => /127.0.0.1:35155] FLUSH
06:38:53.028 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 :> /127.0.0.1:35155] INACTIVE
06:38:53.028 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4713ca5c, /127.0.0.1:54728 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.028 [nioEventLoopGroup-376-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-376-1
06:38:53.028 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.030 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.031 [nioEventLoopGroup-372-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:53.031 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.031 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 => /127.0.0.1:35155] FLUSH
06:38:53.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.031 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 => /127.0.0.1:35155] FLUSH
06:38:53.031 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 :> /127.0.0.1:35155] INACTIVE
06:38:53.031 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33c0fbdc, /127.0.0.1:54730 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.031 [nioEventLoopGroup-377-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-377-1
06:38:53.032 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.033 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.034 [nioEventLoopGroup-372-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:53.034 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.034 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 => /127.0.0.1:35155] FLUSH
06:38:53.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.034 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 => /127.0.0.1:35155] FLUSH
06:38:53.034 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 :> /127.0.0.1:35155] INACTIVE
06:38:53.034 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd15b9b2d, /127.0.0.1:54732 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.034 [nioEventLoopGroup-378-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-378-1
06:38:53.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.036 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.036 [nioEventLoopGroup-372-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:53.036 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.037 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 => /127.0.0.1:35155] FLUSH
06:38:53.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.037 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 => /127.0.0.1:35155] FLUSH
06:38:53.037 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 :> /127.0.0.1:35155] INACTIVE
06:38:53.037 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x577c3dc5, /127.0.0.1:54734 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.037 [nioEventLoopGroup-379-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-379-1
06:38:53.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.038 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.039 [nioEventLoopGroup-372-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:53.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 => /127.0.0.1:35155] FLUSH
06:38:53.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 => /127.0.0.1:35155] FLUSH
06:38:53.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 :> /127.0.0.1:35155] INACTIVE
06:38:53.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24bd1aff, /127.0.0.1:54736 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.039 [nioEventLoopGroup-380-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-380-1
06:38:53.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.041 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.041 [nioEventLoopGroup-372-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:53.042 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.042 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 => /127.0.0.1:35155] FLUSH
06:38:53.042 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.042 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 => /127.0.0.1:35155] FLUSH
06:38:53.042 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 :> /127.0.0.1:35155] INACTIVE
06:38:53.042 [nioEventLoopGroup-381-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-381-1
06:38:53.042 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805a1131, /127.0.0.1:54738 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.042 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.044 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.044 [nioEventLoopGroup-372-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:53.044 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.044 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 => /127.0.0.1:35155] FLUSH
06:38:53.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.045 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 => /127.0.0.1:35155] FLUSH
06:38:53.045 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 :> /127.0.0.1:35155] INACTIVE
06:38:53.045 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa71e1e1, /127.0.0.1:54740 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.045 [nioEventLoopGroup-382-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-382-1
06:38:53.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.047 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.048 [nioEventLoopGroup-372-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:53.048 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.048 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 => /127.0.0.1:35155] FLUSH
06:38:53.048 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.048 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 => /127.0.0.1:35155] FLUSH
06:38:53.048 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 :> /127.0.0.1:35155] INACTIVE
06:38:53.048 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe46dd793, /127.0.0.1:54742 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.048 [nioEventLoopGroup-383-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-383-1
06:38:53.049 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.050 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.051 [nioEventLoopGroup-372-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:53.051 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.051 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 => /127.0.0.1:35155] FLUSH
06:38:53.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.051 [nioEventLoopGroup-384-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-384-1
06:38:53.051 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 => /127.0.0.1:35155] FLUSH
06:38:53.051 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 :> /127.0.0.1:35155] INACTIVE
06:38:53.051 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc02adefe, /127.0.0.1:54744 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.053 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 => /127.0.0.1:35155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.054 [nioEventLoopGroup-372-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.054 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.054 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 => /127.0.0.1:35155] FLUSH
06:38:53.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.054 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 => /127.0.0.1:35155] FLUSH
06:38:53.054 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 :> /127.0.0.1:35155] INACTIVE
06:38:53.054 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdce6ad, /127.0.0.1:54746 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.054 [nioEventLoopGroup-385-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-385-1
06:38:53.056 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35155
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:53.056 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.056 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.056 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:53.056 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:53.057 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.058 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:53.058 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] FLUSH
06:38:53.059 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35155
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:53.059 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.059 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.059 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:53.059 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.059 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
06:38:53.060 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35155" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.061 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
06:38:53.061 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 => /127.0.0.1:35155] FLUSH
06:38:53.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:53.063 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 => /127.0.0.1:35155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35155
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:53.063 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 => /127.0.0.1:35155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.063 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 => /127.0.0.1:35155] FLUSH
06:38:53.063 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 => /127.0.0.1:35155] CLOSE()
06:38:53.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.064 [nioEventLoopGroup-386-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-386-1
06:38:53.066 [nioEventLoopGroup-372-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-2
06:38:53.066 [nioEventLoopGroup-372-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-1
06:38:53.066 [nioEventLoopGroup-372-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-3
06:38:53.066 [nioEventLoopGroup-372-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-6
06:38:53.066 [nioEventLoopGroup-372-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-10
06:38:53.066 [nioEventLoopGroup-372-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-12
06:38:53.066 [nioEventLoopGroup-372-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-8
06:38:53.066 [nioEventLoopGroup-372-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-4
06:38:53.066 [nioEventLoopGroup-372-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-13
06:38:53.066 [nioEventLoopGroup-372-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-7
06:38:53.066 [nioEventLoopGroup-372-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-5
06:38:53.066 [nioEventLoopGroup-372-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-9
06:38:53.066 [nioEventLoopGroup-372-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-11
06:38:53.066 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 :> /127.0.0.1:35155] INACTIVE
06:38:53.066 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88f96356, /127.0.0.1:54748 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.166 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 :> /127.0.0.1:39105] FLUSH
06:38:53.166 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 :> /127.0.0.1:39105] INACTIVE
06:38:53.166 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24964a2e, /127.0.0.1:40474 :> /127.0.0.1:39105] UNREGISTERED
06:38:53.167 [nioEventLoopGroup-356-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-15
06:38:53.224 [nioEventLoopGroup-340-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-14
06:38:53.416 [MockServer thread for port: 44746] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44746
06:38:53.417 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.418 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.419 [nioEventLoopGroup-388-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.419 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.419 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 => /127.0.0.1:44746] FLUSH
06:38:53.419 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.419 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 => /127.0.0.1:44746] FLUSH
06:38:53.419 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 :> /127.0.0.1:44746] INACTIVE
06:38:53.419 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bdf7a65, /127.0.0.1:35538 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.420 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.420 [nioEventLoopGroup-389-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-389-1
06:38:53.421 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.422 [nioEventLoopGroup-388-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:53.422 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.422 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 => /127.0.0.1:44746] FLUSH
06:38:53.422 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.422 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 => /127.0.0.1:44746] FLUSH
06:38:53.422 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 :> /127.0.0.1:44746] INACTIVE
06:38:53.422 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x422af95d, /127.0.0.1:35540 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.422 [nioEventLoopGroup-390-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-390-1
06:38:53.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.424 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.424 [nioEventLoopGroup-388-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:53.424 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.424 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 => /127.0.0.1:44746] FLUSH
06:38:53.424 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.425 [nioEventLoopGroup-391-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-391-1
06:38:53.425 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 => /127.0.0.1:44746] FLUSH
06:38:53.425 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 :> /127.0.0.1:44746] INACTIVE
06:38:53.425 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x786a858c, /127.0.0.1:35542 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.426 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.427 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.427 [nioEventLoopGroup-388-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.427 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.427 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 => /127.0.0.1:44746] FLUSH
06:38:53.428 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.428 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 => /127.0.0.1:44746] FLUSH
06:38:53.428 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 :> /127.0.0.1:44746] INACTIVE
06:38:53.428 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c0b3c3, /127.0.0.1:35544 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.428 [nioEventLoopGroup-392-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-392-1
06:38:53.430 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.431 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.432 [nioEventLoopGroup-388-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:53.432 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.432 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 => /127.0.0.1:44746] FLUSH
06:38:53.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.432 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 => /127.0.0.1:44746] FLUSH
06:38:53.432 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 :> /127.0.0.1:44746] INACTIVE
06:38:53.432 [nioEventLoopGroup-393-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-393-1
06:38:53.432 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbce665f7, /127.0.0.1:35546 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.434 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.434 [nioEventLoopGroup-388-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:53.434 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.434 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 => /127.0.0.1:44746] FLUSH
06:38:53.435 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.435 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 => /127.0.0.1:44746] FLUSH
06:38:53.435 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 :> /127.0.0.1:44746] INACTIVE
06:38:53.435 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe08d02e0, /127.0.0.1:35548 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.435 [nioEventLoopGroup-394-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-394-1
06:38:53.435 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.436 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.437 [nioEventLoopGroup-388-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:53.437 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.437 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 => /127.0.0.1:44746] FLUSH
06:38:53.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.437 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 => /127.0.0.1:44746] FLUSH
06:38:53.437 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 :> /127.0.0.1:44746] INACTIVE
06:38:53.437 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x091f9cbd, /127.0.0.1:35550 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.437 [nioEventLoopGroup-395-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-395-1
06:38:53.438 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.439 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.440 [nioEventLoopGroup-388-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:53.440 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.440 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 => /127.0.0.1:44746] FLUSH
06:38:53.440 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.440 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 => /127.0.0.1:44746] FLUSH
06:38:53.440 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 :> /127.0.0.1:44746] INACTIVE
06:38:53.440 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ab4cf6, /127.0.0.1:35552 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.440 [nioEventLoopGroup-396-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-396-1
06:38:53.441 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.442 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.442 [nioEventLoopGroup-388-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:53.442 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.443 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 => /127.0.0.1:44746] FLUSH
06:38:53.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.443 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 => /127.0.0.1:44746] FLUSH
06:38:53.443 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 :> /127.0.0.1:44746] INACTIVE
06:38:53.443 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8cd33aa, /127.0.0.1:35554 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.443 [nioEventLoopGroup-397-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-397-1
06:38:53.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.445 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.445 [nioEventLoopGroup-388-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:53.445 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.445 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 => /127.0.0.1:44746] FLUSH
06:38:53.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.446 [nioEventLoopGroup-398-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-398-1
06:38:53.446 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 => /127.0.0.1:44746] FLUSH
06:38:53.446 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 :> /127.0.0.1:44746] INACTIVE
06:38:53.446 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c37f57a, /127.0.0.1:35556 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.447 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.449 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.449 [nioEventLoopGroup-388-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:53.449 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.449 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 => /127.0.0.1:44746] FLUSH
06:38:53.449 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.450 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 => /127.0.0.1:44746] FLUSH
06:38:53.450 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 :> /127.0.0.1:44746] INACTIVE
06:38:53.450 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e2a0f0a, /127.0.0.1:35558 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.450 [nioEventLoopGroup-399-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-399-1
06:38:53.450 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.452 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.452 [nioEventLoopGroup-388-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:53.452 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.452 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 => /127.0.0.1:44746] FLUSH
06:38:53.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.452 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 => /127.0.0.1:44746] FLUSH
06:38:53.453 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 :> /127.0.0.1:44746] INACTIVE
06:38:53.453 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ce5350a, /127.0.0.1:35560 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.453 [nioEventLoopGroup-400-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-400-1
06:38:53.453 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.455 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 => /127.0.0.1:44746] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.455 [nioEventLoopGroup-388-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.455 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.455 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 => /127.0.0.1:44746] FLUSH
06:38:53.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.456 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 => /127.0.0.1:44746] FLUSH
06:38:53.456 [nioEventLoopGroup-401-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-401-1
06:38:53.456 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 :> /127.0.0.1:44746] INACTIVE
06:38:53.456 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47f108c7, /127.0.0.1:35562 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.462 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76f0fc9d, /127.0.0.1:35564 => /127.0.0.1:44746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:44746
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:53.463 [nioEventLoopGroup-388-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
06:38:53.463 [nioEventLoopGroup-388-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44746" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.463 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76f0fc9d, /127.0.0.1:35564 => /127.0.0.1:44746] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:53.463 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76f0fc9d, /127.0.0.1:35564 => /127.0.0.1:44746] FLUSH
06:38:53.469 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x989728b6, /127.0.0.1:35566 => /127.0.0.1:44746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:44746
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:53.470 [nioEventLoopGroup-388-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44746" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
06:38:53.470 [nioEventLoopGroup-388-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44746" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.470 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x989728b6, /127.0.0.1:35566 => /127.0.0.1:44746] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:53.470 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x989728b6, /127.0.0.1:35566 => /127.0.0.1:44746] FLUSH
06:38:53.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:53.473 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 => /127.0.0.1:44746] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44746
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:53.473 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 => /127.0.0.1:44746] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.473 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 => /127.0.0.1:44746] FLUSH
06:38:53.473 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 => /127.0.0.1:44746] CLOSE()
06:38:53.482 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.482 [nioEventLoopGroup-402-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-402-1
06:38:53.483 [nioEventLoopGroup-388-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-1
06:38:53.483 [nioEventLoopGroup-388-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-2
06:38:53.483 [nioEventLoopGroup-388-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-3
06:38:53.483 [nioEventLoopGroup-388-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-5
06:38:53.483 [nioEventLoopGroup-388-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-4
06:38:53.483 [nioEventLoopGroup-388-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-6
06:38:53.483 [nioEventLoopGroup-388-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-7
06:38:53.483 [nioEventLoopGroup-388-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-8
06:38:53.484 [nioEventLoopGroup-388-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-9
06:38:53.484 [nioEventLoopGroup-388-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-10
06:38:53.484 [nioEventLoopGroup-388-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-11
06:38:53.484 [nioEventLoopGroup-388-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-12
06:38:53.484 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76f0fc9d, /127.0.0.1:35564 :> /127.0.0.1:44746] INACTIVE
06:38:53.484 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x989728b6, /127.0.0.1:35566 :> /127.0.0.1:44746] INACTIVE
06:38:53.484 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76f0fc9d, /127.0.0.1:35564 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.484 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x989728b6, /127.0.0.1:35566 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.490 [nioEventLoopGroup-388-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-13
06:38:53.566 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 :> /127.0.0.1:35155] FLUSH
06:38:53.566 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 :> /127.0.0.1:35155] INACTIVE
06:38:53.566 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x735ef46a, /127.0.0.1:54750 :> /127.0.0.1:35155] UNREGISTERED
06:38:53.566 [nioEventLoopGroup-372-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-15
06:38:53.667 [nioEventLoopGroup-356-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-14
06:38:53.837 [MockServer thread for port: 43213] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43213
06:38:53.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.839 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.839 [nioEventLoopGroup-404-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.839 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.839 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 => /127.0.0.1:43213] FLUSH
06:38:53.840 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.840 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 => /127.0.0.1:43213] FLUSH
06:38:53.840 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 :> /127.0.0.1:43213] INACTIVE
06:38:53.840 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499e2be5, /127.0.0.1:39520 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.840 [nioEventLoopGroup-405-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-405-1
06:38:53.841 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.843 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.844 [nioEventLoopGroup-404-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:53.844 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.844 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 => /127.0.0.1:43213] FLUSH
06:38:53.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.844 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 => /127.0.0.1:43213] FLUSH
06:38:53.844 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 :> /127.0.0.1:43213] INACTIVE
06:38:53.844 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2dc5c935, /127.0.0.1:39522 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.844 [nioEventLoopGroup-406-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-406-1
06:38:53.846 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.848 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.849 [nioEventLoopGroup-404-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:53.849 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.849 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 => /127.0.0.1:43213] FLUSH
06:38:53.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.849 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 => /127.0.0.1:43213] FLUSH
06:38:53.849 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 :> /127.0.0.1:43213] INACTIVE
06:38:53.849 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba2328b3, /127.0.0.1:39524 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.849 [nioEventLoopGroup-407-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-407-1
06:38:53.851 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.852 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.853 [nioEventLoopGroup-404-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.853 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.853 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 => /127.0.0.1:43213] FLUSH
06:38:53.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.853 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 => /127.0.0.1:43213] FLUSH
06:38:53.853 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 :> /127.0.0.1:43213] INACTIVE
06:38:53.853 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a3175df, /127.0.0.1:39526 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.853 [nioEventLoopGroup-408-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-408-1
06:38:53.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.883 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.884 [nioEventLoopGroup-404-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:53.884 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.884 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 => /127.0.0.1:43213] FLUSH
06:38:53.885 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.885 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 => /127.0.0.1:43213] FLUSH
06:38:53.885 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 :> /127.0.0.1:43213] INACTIVE
06:38:53.885 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4b00f1, /127.0.0.1:39528 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.885 [nioEventLoopGroup-409-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-409-1
06:38:53.887 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.888 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.888 [nioEventLoopGroup-404-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:53.889 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.889 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 => /127.0.0.1:43213] FLUSH
06:38:53.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.889 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 => /127.0.0.1:43213] FLUSH
06:38:53.889 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 :> /127.0.0.1:43213] INACTIVE
06:38:53.889 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x481cdb12, /127.0.0.1:39530 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.889 [nioEventLoopGroup-410-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-410-1
06:38:53.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.892 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.892 [nioEventLoopGroup-404-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:53.892 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.893 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 => /127.0.0.1:43213] FLUSH
06:38:53.893 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.893 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 => /127.0.0.1:43213] FLUSH
06:38:53.893 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 :> /127.0.0.1:43213] INACTIVE
06:38:53.893 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53280b01, /127.0.0.1:39532 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.893 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.899 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.899 [nioEventLoopGroup-404-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:53.900 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.900 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 => /127.0.0.1:43213] FLUSH
06:38:53.900 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.901 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 => /127.0.0.1:43213] FLUSH
06:38:53.901 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 :> /127.0.0.1:43213] INACTIVE
06:38:53.901 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc92ab211, /127.0.0.1:39534 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.901 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.902 [nioEventLoopGroup-412-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-412-1
06:38:53.903 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.904 [nioEventLoopGroup-404-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:53.904 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.904 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 => /127.0.0.1:43213] FLUSH
06:38:53.904 [nioEventLoopGroup-411-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-411-1
06:38:53.904 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.905 [nioEventLoopGroup-413-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-413-1
06:38:53.905 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 => /127.0.0.1:43213] FLUSH
06:38:53.905 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 :> /127.0.0.1:43213] INACTIVE
06:38:53.905 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x596e3fb0, /127.0.0.1:39538 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.909 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.909 [nioEventLoopGroup-404-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:53.910 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.910 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 => /127.0.0.1:43213] FLUSH
06:38:53.911 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 => /127.0.0.1:43213] FLUSH
06:38:53.911 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 :> /127.0.0.1:43213] INACTIVE
06:38:53.911 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f9a1d1, /127.0.0.1:39540 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.929 [nioEventLoopGroup-414-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-414-1
06:38:53.931 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.934 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.934 [nioEventLoopGroup-404-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:53.934 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.934 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 => /127.0.0.1:43213] FLUSH
06:38:53.935 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.935 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 => /127.0.0.1:43213] FLUSH
06:38:53.935 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 :> /127.0.0.1:43213] INACTIVE
06:38:53.935 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d874ae2, /127.0.0.1:39544 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.935 [nioEventLoopGroup-415-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-415-1
06:38:53.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.937 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.938 [nioEventLoopGroup-404-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:53.938 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.938 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 => /127.0.0.1:43213] FLUSH
06:38:53.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.938 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 => /127.0.0.1:43213] FLUSH
06:38:53.939 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 :> /127.0.0.1:43213] INACTIVE
06:38:53.939 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d857a48, /127.0.0.1:39547 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.939 [nioEventLoopGroup-416-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-416-1
06:38:53.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:53.941 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 => /127.0.0.1:43213] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:53.942 [nioEventLoopGroup-404-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:53.942 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.942 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 => /127.0.0.1:43213] FLUSH
06:38:53.942 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.942 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 => /127.0.0.1:43213] FLUSH
06:38:53.942 [nioEventLoopGroup-417-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-417-1
06:38:53.943 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 :> /127.0.0.1:43213] INACTIVE
06:38:53.943 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf744826e, /127.0.0.1:39550 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.944 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43213
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:53.945 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43213" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
06:38:53.945 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43213" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.945 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:53.946 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] FLUSH
06:38:53.948 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43213
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:53.948 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43213" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
06:38:53.949 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43213" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:53.949 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:53.949 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 => /127.0.0.1:43213] FLUSH
06:38:53.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:53.952 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 => /127.0.0.1:43213] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43213
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:53.952 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 => /127.0.0.1:43213] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:53.952 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 => /127.0.0.1:43213] FLUSH
06:38:53.952 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 => /127.0.0.1:43213] CLOSE()
06:38:53.952 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:53.953 [nioEventLoopGroup-418-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-418-1
06:38:53.955 [nioEventLoopGroup-404-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-3
06:38:53.955 [nioEventLoopGroup-404-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-1
06:38:53.955 [nioEventLoopGroup-404-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-2
06:38:53.955 [nioEventLoopGroup-404-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-4
06:38:53.956 [nioEventLoopGroup-404-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-5
06:38:53.956 [nioEventLoopGroup-404-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-6
06:38:53.956 [nioEventLoopGroup-404-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-7
06:38:53.956 [nioEventLoopGroup-404-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-8
06:38:53.956 [nioEventLoopGroup-404-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-9
06:38:53.956 [nioEventLoopGroup-404-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-10
06:38:53.956 [nioEventLoopGroup-404-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-11
06:38:53.956 [nioEventLoopGroup-404-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-12
06:38:53.956 [nioEventLoopGroup-404-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-13
06:38:53.956 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 :> /127.0.0.1:43213] INACTIVE
06:38:53.957 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x084a5fea, /127.0.0.1:39554 :> /127.0.0.1:43213] UNREGISTERED
06:38:53.984 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 :> /127.0.0.1:44746] FLUSH
06:38:53.984 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 :> /127.0.0.1:44746] INACTIVE
06:38:53.984 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7db957fb, /127.0.0.1:35568 :> /127.0.0.1:44746] UNREGISTERED
06:38:53.984 [nioEventLoopGroup-388-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-16
06:38:54.068 [nioEventLoopGroup-372-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-14
06:38:54.306 [MockServer thread for port: 39840] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39840
06:38:54.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.308 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.309 [nioEventLoopGroup-420-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.309 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.309 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 => /127.0.0.1:39840] FLUSH
06:38:54.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.309 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 => /127.0.0.1:39840] FLUSH
06:38:54.309 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 :> /127.0.0.1:39840] INACTIVE
06:38:54.309 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b9c8acc, /127.0.0.1:48160 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.309 [nioEventLoopGroup-421-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-421-1
06:38:54.310 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.311 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.311 [nioEventLoopGroup-420-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:54.312 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.312 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 => /127.0.0.1:39840] FLUSH
06:38:54.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.312 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 => /127.0.0.1:39840] FLUSH
06:38:54.312 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 :> /127.0.0.1:39840] INACTIVE
06:38:54.312 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56dc834f, /127.0.0.1:48162 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.312 [nioEventLoopGroup-422-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-422-1
06:38:54.313 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.314 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.315 [nioEventLoopGroup-420-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:54.315 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.315 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 => /127.0.0.1:39840] FLUSH
06:38:54.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.315 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 => /127.0.0.1:39840] FLUSH
06:38:54.315 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 :> /127.0.0.1:39840] INACTIVE
06:38:54.315 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08cc6b62, /127.0.0.1:48164 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.315 [nioEventLoopGroup-423-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-423-1
06:38:54.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.317 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.318 [nioEventLoopGroup-420-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.318 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.318 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 => /127.0.0.1:39840] FLUSH
06:38:54.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.318 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 => /127.0.0.1:39840] FLUSH
06:38:54.318 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 :> /127.0.0.1:39840] INACTIVE
06:38:54.318 [nioEventLoopGroup-424-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-424-1
06:38:54.318 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1ed923b, /127.0.0.1:48166 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.320 [nioEventLoopGroup-420-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 => /127.0.0.1:39840] FLUSH
06:38:54.320 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 => /127.0.0.1:39840] FLUSH
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 :> /127.0.0.1:39840] INACTIVE
06:38:54.320 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e13c3a0, /127.0.0.1:48168 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.320 [nioEventLoopGroup-425-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-425-1
06:38:54.321 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.322 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.323 [nioEventLoopGroup-420-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:54.323 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.323 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 => /127.0.0.1:39840] FLUSH
06:38:54.323 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.323 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 => /127.0.0.1:39840] FLUSH
06:38:54.323 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 :> /127.0.0.1:39840] INACTIVE
06:38:54.323 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd08fa1a, /127.0.0.1:48170 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.323 [nioEventLoopGroup-426-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-426-1
06:38:54.323 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.325 [nioEventLoopGroup-420-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 => /127.0.0.1:39840] FLUSH
06:38:54.325 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 => /127.0.0.1:39840] FLUSH
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 :> /127.0.0.1:39840] INACTIVE
06:38:54.325 [nioEventLoopGroup-427-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-427-1
06:38:54.325 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91138a02, /127.0.0.1:48172 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.326 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.327 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.328 [nioEventLoopGroup-420-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:54.328 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.328 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 => /127.0.0.1:39840] FLUSH
06:38:54.328 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.328 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 => /127.0.0.1:39840] FLUSH
06:38:54.328 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 :> /127.0.0.1:39840] INACTIVE
06:38:54.328 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43f82de5, /127.0.0.1:48174 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.328 [nioEventLoopGroup-428-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-428-1
06:38:54.329 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.331 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.331 [nioEventLoopGroup-420-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:54.331 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.331 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 => /127.0.0.1:39840] FLUSH
06:38:54.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.331 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 => /127.0.0.1:39840] FLUSH
06:38:54.332 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 :> /127.0.0.1:39840] INACTIVE
06:38:54.332 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72792413, /127.0.0.1:48176 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.332 [nioEventLoopGroup-429-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-429-1
06:38:54.334 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.336 [nioEventLoopGroup-420-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 => /127.0.0.1:39840] FLUSH
06:38:54.336 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 => /127.0.0.1:39840] FLUSH
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 :> /127.0.0.1:39840] INACTIVE
06:38:54.336 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55acc656, /127.0.0.1:48178 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.336 [nioEventLoopGroup-430-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-430-1
06:38:54.337 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.338 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.339 [nioEventLoopGroup-420-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:54.339 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.339 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 => /127.0.0.1:39840] FLUSH
06:38:54.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.339 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 => /127.0.0.1:39840] FLUSH
06:38:54.339 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 :> /127.0.0.1:39840] INACTIVE
06:38:54.339 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb95b0022, /127.0.0.1:48180 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.339 [nioEventLoopGroup-431-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-431-1
06:38:54.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.340 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.341 [nioEventLoopGroup-420-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:54.341 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.341 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 => /127.0.0.1:39840] FLUSH
06:38:54.341 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.341 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 => /127.0.0.1:39840] FLUSH
06:38:54.341 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 :> /127.0.0.1:39840] INACTIVE
06:38:54.341 [nioEventLoopGroup-432-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-432-1
06:38:54.341 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ebc94be, /127.0.0.1:48182 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.342 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.343 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 => /127.0.0.1:39840] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.343 [nioEventLoopGroup-420-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.343 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.344 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 => /127.0.0.1:39840] FLUSH
06:38:54.344 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.344 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 => /127.0.0.1:39840] FLUSH
06:38:54.344 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 :> /127.0.0.1:39840] INACTIVE
06:38:54.344 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78589635, /127.0.0.1:48184 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.344 [nioEventLoopGroup-433-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-433-1
06:38:54.349 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f0b8f15, /127.0.0.1:48186 => /127.0.0.1:39840] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:39840
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:54.349 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.350 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.350 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:54.350 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
06:38:54.350 [nioEventLoopGroup-420-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:54.350 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f0b8f15, /127.0.0.1:48186 => /127.0.0.1:39840] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:54.350 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f0b8f15, /127.0.0.1:48186 => /127.0.0.1:39840] FLUSH
06:38:54.354 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b05043e, /127.0.0.1:48188 => /127.0.0.1:39840] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:39840
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:54.354 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.354 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.354 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:54.354 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
06:38:54.355 [nioEventLoopGroup-420-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39840" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:54.355 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b05043e, /127.0.0.1:48188 => /127.0.0.1:39840] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:54.355 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b05043e, /127.0.0.1:48188 => /127.0.0.1:39840] FLUSH
06:38:54.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:54.357 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 => /127.0.0.1:39840] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39840
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:54.357 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 => /127.0.0.1:39840] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.357 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 => /127.0.0.1:39840] FLUSH
06:38:54.357 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 => /127.0.0.1:39840] CLOSE()
06:38:54.357 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.357 [nioEventLoopGroup-434-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-434-1
06:38:54.358 [nioEventLoopGroup-420-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-3
06:38:54.358 [nioEventLoopGroup-420-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-5
06:38:54.358 [nioEventLoopGroup-420-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-1
06:38:54.358 [nioEventLoopGroup-420-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-2
06:38:54.358 [nioEventLoopGroup-420-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-4
06:38:54.358 [nioEventLoopGroup-420-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-6
06:38:54.358 [nioEventLoopGroup-420-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-7
06:38:54.358 [nioEventLoopGroup-420-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-8
06:38:54.358 [nioEventLoopGroup-420-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-10
06:38:54.358 [nioEventLoopGroup-420-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-11
06:38:54.358 [nioEventLoopGroup-420-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-12
06:38:54.358 [nioEventLoopGroup-420-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-13
06:38:54.359 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f0b8f15, /127.0.0.1:48186 :> /127.0.0.1:39840] INACTIVE
06:38:54.359 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f0b8f15, /127.0.0.1:48186 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.359 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b05043e, /127.0.0.1:48188 :> /127.0.0.1:39840] INACTIVE
06:38:54.359 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b05043e, /127.0.0.1:48188 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.359 [nioEventLoopGroup-420-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-9
06:38:54.456 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 :> /127.0.0.1:43213] FLUSH
06:38:54.456 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 :> /127.0.0.1:43213] INACTIVE
06:38:54.456 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf27ee746, /127.0.0.1:39560 :> /127.0.0.1:43213] UNREGISTERED
06:38:54.457 [nioEventLoopGroup-404-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-15
06:38:54.485 [nioEventLoopGroup-388-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-15
06:38:54.485 [nioEventLoopGroup-388-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-14
06:38:54.710 [MockServer thread for port: 46347] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 46347
06:38:54.710 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.711 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.712 [nioEventLoopGroup-436-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.712 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.712 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 => /127.0.0.1:46347] FLUSH
06:38:54.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.712 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 => /127.0.0.1:46347] FLUSH
06:38:54.712 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 :> /127.0.0.1:46347] INACTIVE
06:38:54.712 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe902b58a, /127.0.0.1:40210 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.713 [nioEventLoopGroup-437-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-437-1
06:38:54.713 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.715 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.716 [nioEventLoopGroup-436-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:54.716 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.716 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 => /127.0.0.1:46347] FLUSH
06:38:54.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.716 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 => /127.0.0.1:46347] FLUSH
06:38:54.716 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 :> /127.0.0.1:46347] INACTIVE
06:38:54.716 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde03ee08, /127.0.0.1:40212 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.716 [nioEventLoopGroup-438-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-438-1
06:38:54.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.722 [nioEventLoopGroup-436-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 => /127.0.0.1:46347] FLUSH
06:38:54.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 => /127.0.0.1:46347] FLUSH
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 :> /127.0.0.1:46347] INACTIVE
06:38:54.722 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b8f5be, /127.0.0.1:40214 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.722 [nioEventLoopGroup-439-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-439-1
06:38:54.723 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.724 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.725 [nioEventLoopGroup-436-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.725 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.725 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 => /127.0.0.1:46347] FLUSH
06:38:54.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.725 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 => /127.0.0.1:46347] FLUSH
06:38:54.725 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 :> /127.0.0.1:46347] INACTIVE
06:38:54.725 [nioEventLoopGroup-440-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-440-1
06:38:54.725 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea49caf6, /127.0.0.1:40216 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.726 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.727 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.728 [nioEventLoopGroup-436-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:54.728 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.728 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 => /127.0.0.1:46347] FLUSH
06:38:54.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.728 [nioEventLoopGroup-441-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-441-1
06:38:54.728 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 => /127.0.0.1:46347] FLUSH
06:38:54.728 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 :> /127.0.0.1:46347] INACTIVE
06:38:54.728 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c040ea0, /127.0.0.1:40218 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.731 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.732 [nioEventLoopGroup-436-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:54.732 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.732 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 => /127.0.0.1:46347] FLUSH
06:38:54.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.732 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 => /127.0.0.1:46347] FLUSH
06:38:54.732 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 :> /127.0.0.1:46347] INACTIVE
06:38:54.732 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e51d09, /127.0.0.1:40220 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.732 [nioEventLoopGroup-442-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-442-1
06:38:54.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.734 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.735 [nioEventLoopGroup-436-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:54.735 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.735 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 => /127.0.0.1:46347] FLUSH
06:38:54.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.735 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 => /127.0.0.1:46347] FLUSH
06:38:54.735 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 :> /127.0.0.1:46347] INACTIVE
06:38:54.735 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb713e2e, /127.0.0.1:40222 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.735 [nioEventLoopGroup-443-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-443-1
06:38:54.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.737 [nioEventLoopGroup-436-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 => /127.0.0.1:46347] FLUSH
06:38:54.737 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 => /127.0.0.1:46347] FLUSH
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 :> /127.0.0.1:46347] INACTIVE
06:38:54.737 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c75d11d, /127.0.0.1:40224 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.737 [nioEventLoopGroup-444-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-444-1
06:38:54.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.739 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.740 [nioEventLoopGroup-436-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:54.740 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.740 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 => /127.0.0.1:46347] FLUSH
06:38:54.740 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.740 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 => /127.0.0.1:46347] FLUSH
06:38:54.740 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 :> /127.0.0.1:46347] INACTIVE
06:38:54.740 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad5ac803, /127.0.0.1:40226 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.740 [nioEventLoopGroup-445-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-445-1
06:38:54.741 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.742 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.742 [nioEventLoopGroup-436-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:54.743 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.743 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 => /127.0.0.1:46347] FLUSH
06:38:54.743 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.743 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 => /127.0.0.1:46347] FLUSH
06:38:54.743 [nioEventLoopGroup-446-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-446-1
06:38:54.743 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 :> /127.0.0.1:46347] INACTIVE
06:38:54.743 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3c326d4, /127.0.0.1:40228 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.743 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.745 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.746 [nioEventLoopGroup-436-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:54.746 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.746 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 => /127.0.0.1:46347] FLUSH
06:38:54.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.746 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 => /127.0.0.1:46347] FLUSH
06:38:54.746 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 :> /127.0.0.1:46347] INACTIVE
06:38:54.746 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850f8cb7, /127.0.0.1:40230 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.746 [nioEventLoopGroup-447-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-447-1
06:38:54.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.749 [nioEventLoopGroup-436-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 => /127.0.0.1:46347] FLUSH
06:38:54.749 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 => /127.0.0.1:46347] FLUSH
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 :> /127.0.0.1:46347] INACTIVE
06:38:54.749 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd62b096, /127.0.0.1:40232 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.749 [nioEventLoopGroup-448-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-448-1
06:38:54.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:54.752 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 => /127.0.0.1:46347] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:54.752 [nioEventLoopGroup-436-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:54.752 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.752 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 => /127.0.0.1:46347] FLUSH
06:38:54.753 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.753 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 => /127.0.0.1:46347] FLUSH
06:38:54.753 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 :> /127.0.0.1:46347] INACTIVE
06:38:54.753 [nioEventLoopGroup-449-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-449-1
06:38:54.753 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd23384, /127.0.0.1:40234 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.754 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46347
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:54.755 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.755 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.755 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:54.755 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
06:38:54.755 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:54.755 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:54.755 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] FLUSH
06:38:54.756 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46347
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:54.757 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.757 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:54.757 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:54.757 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
06:38:54.757 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46347" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:54.757 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:54.757 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 => /127.0.0.1:46347] FLUSH
06:38:54.758 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:54.759 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 => /127.0.0.1:46347] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:46347
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:54.759 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 => /127.0.0.1:46347] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:54.759 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 => /127.0.0.1:46347] FLUSH
06:38:54.759 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 => /127.0.0.1:46347] CLOSE()
06:38:54.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:54.760 [nioEventLoopGroup-450-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-450-1
06:38:54.762 [nioEventLoopGroup-436-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-2
06:38:54.762 [nioEventLoopGroup-436-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-1
06:38:54.762 [nioEventLoopGroup-436-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-7
06:38:54.762 [nioEventLoopGroup-436-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-4
06:38:54.762 [nioEventLoopGroup-436-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-3
06:38:54.762 [nioEventLoopGroup-436-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-9
06:38:54.762 [nioEventLoopGroup-436-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-8
06:38:54.762 [nioEventLoopGroup-436-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-10
06:38:54.762 [nioEventLoopGroup-436-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-11
06:38:54.762 [nioEventLoopGroup-436-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-13
06:38:54.762 [nioEventLoopGroup-436-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-5
06:38:54.762 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 :> /127.0.0.1:46347] INACTIVE
06:38:54.762 [nioEventLoopGroup-436-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-6
06:38:54.762 [nioEventLoopGroup-436-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-12
06:38:54.762 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba80cfd9, /127.0.0.1:40236 :> /127.0.0.1:46347] UNREGISTERED
06:38:54.858 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 :> /127.0.0.1:39840] FLUSH
06:38:54.858 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 :> /127.0.0.1:39840] INACTIVE
06:38:54.858 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf81fe952, /127.0.0.1:48190 :> /127.0.0.1:39840] UNREGISTERED
06:38:54.858 [nioEventLoopGroup-420-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-16
06:38:54.958 [nioEventLoopGroup-404-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-14
06:38:55.112 [MockServer thread for port: 42765] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42765
06:38:55.113 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.114 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.115 [nioEventLoopGroup-452-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.115 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.115 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 => /127.0.0.1:42765] FLUSH
06:38:55.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.116 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 => /127.0.0.1:42765] FLUSH
06:38:55.116 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 :> /127.0.0.1:42765] INACTIVE
06:38:55.116 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1be7a5, /127.0.0.1:37040 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.116 [nioEventLoopGroup-453-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-453-1
06:38:55.116 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.118 [nioEventLoopGroup-452-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 => /127.0.0.1:42765] FLUSH
06:38:55.118 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 => /127.0.0.1:42765] FLUSH
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 :> /127.0.0.1:42765] INACTIVE
06:38:55.118 [nioEventLoopGroup-454-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-454-1
06:38:55.118 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcaa4744, /127.0.0.1:37042 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.119 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.120 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.121 [nioEventLoopGroup-452-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:55.121 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.121 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 => /127.0.0.1:42765] FLUSH
06:38:55.121 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.121 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 => /127.0.0.1:42765] FLUSH
06:38:55.121 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 :> /127.0.0.1:42765] INACTIVE
06:38:55.121 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51353d87, /127.0.0.1:37044 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.121 [nioEventLoopGroup-455-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-455-1
06:38:55.121 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.123 [nioEventLoopGroup-452-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 => /127.0.0.1:42765] FLUSH
06:38:55.123 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 => /127.0.0.1:42765] FLUSH
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 :> /127.0.0.1:42765] INACTIVE
06:38:55.123 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb69d1bff, /127.0.0.1:37046 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.123 [nioEventLoopGroup-456-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-456-1
06:38:55.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.125 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.126 [nioEventLoopGroup-452-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:55.126 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.126 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 => /127.0.0.1:42765] FLUSH
06:38:55.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.126 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 => /127.0.0.1:42765] FLUSH
06:38:55.126 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 :> /127.0.0.1:42765] INACTIVE
06:38:55.126 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf825a0bb, /127.0.0.1:37048 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.126 [nioEventLoopGroup-457-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-457-1
06:38:55.127 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.128 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.129 [nioEventLoopGroup-452-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:55.129 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.129 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 => /127.0.0.1:42765] FLUSH
06:38:55.129 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.129 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 => /127.0.0.1:42765] FLUSH
06:38:55.129 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 :> /127.0.0.1:42765] INACTIVE
06:38:55.129 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a8e9586, /127.0.0.1:37050 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.129 [nioEventLoopGroup-458-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-458-1
06:38:55.130 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.132 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.132 [nioEventLoopGroup-452-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:55.132 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.132 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 => /127.0.0.1:42765] FLUSH
06:38:55.132 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.132 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 => /127.0.0.1:42765] FLUSH
06:38:55.133 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 :> /127.0.0.1:42765] INACTIVE
06:38:55.133 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cf14f28, /127.0.0.1:37052 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.133 [nioEventLoopGroup-459-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-459-1
06:38:55.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.136 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.137 [nioEventLoopGroup-452-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:55.137 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.137 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 => /127.0.0.1:42765] FLUSH
06:38:55.137 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.137 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 => /127.0.0.1:42765] FLUSH
06:38:55.137 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 :> /127.0.0.1:42765] INACTIVE
06:38:55.137 [nioEventLoopGroup-460-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-460-1
06:38:55.137 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7efe9400, /127.0.0.1:37054 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.176 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.176 [nioEventLoopGroup-452-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:55.176 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.177 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 => /127.0.0.1:42765] FLUSH
06:38:55.177 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.177 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 => /127.0.0.1:42765] FLUSH
06:38:55.177 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 :> /127.0.0.1:42765] INACTIVE
06:38:55.177 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93b03680, /127.0.0.1:37056 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.177 [nioEventLoopGroup-461-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-461-1
06:38:55.177 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.179 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.179 [nioEventLoopGroup-452-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:55.180 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.180 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 => /127.0.0.1:42765] FLUSH
06:38:55.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.180 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 => /127.0.0.1:42765] FLUSH
06:38:55.180 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 :> /127.0.0.1:42765] INACTIVE
06:38:55.180 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b561742, /127.0.0.1:37058 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.180 [nioEventLoopGroup-462-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-462-1
06:38:55.181 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.182 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.182 [nioEventLoopGroup-452-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:55.183 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.183 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 => /127.0.0.1:42765] FLUSH
06:38:55.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.183 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 => /127.0.0.1:42765] FLUSH
06:38:55.183 [nioEventLoopGroup-463-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-463-1
06:38:55.183 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 :> /127.0.0.1:42765] INACTIVE
06:38:55.183 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x260d1bd8, /127.0.0.1:37060 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.185 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.185 [nioEventLoopGroup-452-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:55.185 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.185 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 => /127.0.0.1:42765] FLUSH
06:38:55.186 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.186 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 => /127.0.0.1:42765] FLUSH
06:38:55.186 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 :> /127.0.0.1:42765] INACTIVE
06:38:55.186 [nioEventLoopGroup-464-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-464-1
06:38:55.186 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x821a4285, /127.0.0.1:37062 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.186 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 => /127.0.0.1:42765] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.188 [nioEventLoopGroup-452-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 => /127.0.0.1:42765] FLUSH
06:38:55.188 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 => /127.0.0.1:42765] FLUSH
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 :> /127.0.0.1:42765] INACTIVE
06:38:55.188 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3d7287a, /127.0.0.1:37064 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.188 [nioEventLoopGroup-465-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-465-1
06:38:55.194 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb9f6758, /127.0.0.1:37066 => /127.0.0.1:42765] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:42765
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:55.194 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.195 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.195 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:55.195 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.195 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
06:38:55.195 [nioEventLoopGroup-452-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:55.195 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb9f6758, /127.0.0.1:37066 => /127.0.0.1:42765] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
06:38:55.195 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb9f6758, /127.0.0.1:37066 => /127.0.0.1:42765] FLUSH
06:38:55.220 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805eeffa, /127.0.0.1:37068 => /127.0.0.1:42765] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:42765
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:55.220 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.220 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.221 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:55.221 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.221 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
06:38:55.221 [nioEventLoopGroup-452-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42765" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:55.221 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805eeffa, /127.0.0.1:37068 => /127.0.0.1:42765] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
06:38:55.221 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805eeffa, /127.0.0.1:37068 => /127.0.0.1:42765] FLUSH
06:38:55.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:55.226 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 => /127.0.0.1:42765] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42765
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:55.226 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 => /127.0.0.1:42765] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.226 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 => /127.0.0.1:42765] FLUSH
06:38:55.226 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 => /127.0.0.1:42765] CLOSE()
06:38:55.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.230 [nioEventLoopGroup-466-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-466-1
06:38:55.232 [nioEventLoopGroup-452-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-3
06:38:55.232 [nioEventLoopGroup-452-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-10
06:38:55.232 [nioEventLoopGroup-452-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-2
06:38:55.232 [nioEventLoopGroup-452-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-11
06:38:55.232 [nioEventLoopGroup-452-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-4
06:38:55.232 [nioEventLoopGroup-452-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-1
06:38:55.232 [nioEventLoopGroup-452-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-5
06:38:55.232 [nioEventLoopGroup-452-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-7
06:38:55.232 [nioEventLoopGroup-452-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-8
06:38:55.232 [nioEventLoopGroup-452-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-6
06:38:55.232 [nioEventLoopGroup-452-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-9
06:38:55.232 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805eeffa, /127.0.0.1:37068 :> /127.0.0.1:42765] INACTIVE
06:38:55.232 [nioEventLoopGroup-452-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-12
06:38:55.232 [nioEventLoopGroup-452-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-13
06:38:55.232 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb9f6758, /127.0.0.1:37066 :> /127.0.0.1:42765] INACTIVE
06:38:55.232 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805eeffa, /127.0.0.1:37068 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.232 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb9f6758, /127.0.0.1:37066 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.262 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 :> /127.0.0.1:46347] FLUSH
06:38:55.262 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 :> /127.0.0.1:46347] INACTIVE
06:38:55.262 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b6eca2d, /127.0.0.1:40238 :> /127.0.0.1:46347] UNREGISTERED
06:38:55.262 [nioEventLoopGroup-436-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-15
06:38:55.360 [nioEventLoopGroup-420-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-15
06:38:55.360 [nioEventLoopGroup-420-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-14
06:38:55.582 [MockServer thread for port: 34796] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34796
06:38:55.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.583 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.584 [nioEventLoopGroup-468-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.584 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.584 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 => /127.0.0.1:34796] FLUSH
06:38:55.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.584 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 => /127.0.0.1:34796] FLUSH
06:38:55.584 [nioEventLoopGroup-469-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-469-1
06:38:55.584 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 :> /127.0.0.1:34796] INACTIVE
06:38:55.584 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d65c66d, /127.0.0.1:46294 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.585 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.586 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.586 [nioEventLoopGroup-468-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:55.587 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.587 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 => /127.0.0.1:34796] FLUSH
06:38:55.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.587 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 => /127.0.0.1:34796] FLUSH
06:38:55.587 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 :> /127.0.0.1:34796] INACTIVE
06:38:55.587 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48c57d86, /127.0.0.1:46296 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.587 [nioEventLoopGroup-470-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-470-1
06:38:55.588 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.589 [nioEventLoopGroup-468-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 => /127.0.0.1:34796] FLUSH
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 => /127.0.0.1:34796] FLUSH
06:38:55.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 :> /127.0.0.1:34796] INACTIVE
06:38:55.589 [nioEventLoopGroup-471-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-471-1
06:38:55.589 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c956a4, /127.0.0.1:46298 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.590 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.591 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.591 [nioEventLoopGroup-468-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.591 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.591 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 => /127.0.0.1:34796] FLUSH
06:38:55.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.592 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 => /127.0.0.1:34796] FLUSH
06:38:55.592 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 :> /127.0.0.1:34796] INACTIVE
06:38:55.592 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x272c6648, /127.0.0.1:46300 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.592 [nioEventLoopGroup-472-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-472-1
06:38:55.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.593 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.593 [nioEventLoopGroup-468-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:55.594 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.594 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 => /127.0.0.1:34796] FLUSH
06:38:55.594 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.594 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 => /127.0.0.1:34796] FLUSH
06:38:55.594 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 :> /127.0.0.1:34796] INACTIVE
06:38:55.594 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8830cd96, /127.0.0.1:46302 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.594 [nioEventLoopGroup-473-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-473-1
06:38:55.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.597 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.597 [nioEventLoopGroup-468-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:55.598 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.598 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 => /127.0.0.1:34796] FLUSH
06:38:55.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.598 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 => /127.0.0.1:34796] FLUSH
06:38:55.598 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 :> /127.0.0.1:34796] INACTIVE
06:38:55.598 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264abdf8, /127.0.0.1:46304 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.598 [nioEventLoopGroup-474-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-474-1
06:38:55.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.600 [nioEventLoopGroup-468-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 => /127.0.0.1:34796] FLUSH
06:38:55.600 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 => /127.0.0.1:34796] FLUSH
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 :> /127.0.0.1:34796] INACTIVE
06:38:55.600 [nioEventLoopGroup-475-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-475-1
06:38:55.600 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3db54bdc, /127.0.0.1:46306 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.602 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.602 [nioEventLoopGroup-468-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:55.602 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.602 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 => /127.0.0.1:34796] FLUSH
06:38:55.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.603 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 => /127.0.0.1:34796] FLUSH
06:38:55.603 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 :> /127.0.0.1:34796] INACTIVE
06:38:55.603 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e45659, /127.0.0.1:46308 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.603 [nioEventLoopGroup-476-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-476-1
06:38:55.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.604 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.605 [nioEventLoopGroup-468-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:55.605 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.605 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 => /127.0.0.1:34796] FLUSH
06:38:55.605 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.605 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 => /127.0.0.1:34796] FLUSH
06:38:55.605 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 :> /127.0.0.1:34796] INACTIVE
06:38:55.605 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2954f2c0, /127.0.0.1:46310 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.605 [nioEventLoopGroup-477-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-477-1
06:38:55.606 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.607 [nioEventLoopGroup-468-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 => /127.0.0.1:34796] FLUSH
06:38:55.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 => /127.0.0.1:34796] FLUSH
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 :> /127.0.0.1:34796] INACTIVE
06:38:55.607 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06293661, /127.0.0.1:46312 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.607 [nioEventLoopGroup-478-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-478-1
06:38:55.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.609 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.609 [nioEventLoopGroup-468-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:55.609 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.609 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 => /127.0.0.1:34796] FLUSH
06:38:55.610 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.610 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 => /127.0.0.1:34796] FLUSH
06:38:55.610 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 :> /127.0.0.1:34796] INACTIVE
06:38:55.610 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18bbb610, /127.0.0.1:46314 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.610 [nioEventLoopGroup-479-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-479-1
06:38:55.610 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.612 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.612 [nioEventLoopGroup-468-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:55.612 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.612 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 => /127.0.0.1:34796] FLUSH
06:38:55.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.613 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 => /127.0.0.1:34796] FLUSH
06:38:55.613 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 :> /127.0.0.1:34796] INACTIVE
06:38:55.613 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17c5f22c, /127.0.0.1:46316 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.613 [nioEventLoopGroup-480-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-480-1
06:38:55.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 => /127.0.0.1:34796] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.616 [nioEventLoopGroup-468-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 => /127.0.0.1:34796] FLUSH
06:38:55.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 => /127.0.0.1:34796] FLUSH
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 :> /127.0.0.1:34796] INACTIVE
06:38:55.616 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2be6f735, /127.0.0.1:46318 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.616 [nioEventLoopGroup-481-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-481-1
06:38:55.618 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34796
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:55.618 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.618 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.618 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:55.618 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.619 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
06:38:55.619 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:55.619 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
06:38:55.619 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] FLUSH
06:38:55.622 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34796
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:55.622 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.622 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.622 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:55.622 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:55.622 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
06:38:55.623 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34796" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:55.623 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
06:38:55.623 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 => /127.0.0.1:34796] FLUSH
06:38:55.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:55.626 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 => /127.0.0.1:34796] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34796
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:55.626 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 => /127.0.0.1:34796] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.626 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 => /127.0.0.1:34796] FLUSH
06:38:55.626 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 => /127.0.0.1:34796] CLOSE()
06:38:55.626 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.627 [nioEventLoopGroup-482-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-482-1
06:38:55.628 [nioEventLoopGroup-468-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-10
06:38:55.628 [nioEventLoopGroup-468-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-7
06:38:55.628 [nioEventLoopGroup-468-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-1
06:38:55.628 [nioEventLoopGroup-468-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-2
06:38:55.628 [nioEventLoopGroup-468-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-3
06:38:55.628 [nioEventLoopGroup-468-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-4
06:38:55.628 [nioEventLoopGroup-468-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-5
06:38:55.628 [nioEventLoopGroup-468-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-6
06:38:55.628 [nioEventLoopGroup-468-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-8
06:38:55.628 [nioEventLoopGroup-468-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-9
06:38:55.628 [nioEventLoopGroup-468-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-11
06:38:55.628 [nioEventLoopGroup-468-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-12
06:38:55.628 [nioEventLoopGroup-468-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-13
06:38:55.629 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 :> /127.0.0.1:34796] INACTIVE
06:38:55.629 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf38d0e33, /127.0.0.1:46320 :> /127.0.0.1:34796] UNREGISTERED
06:38:55.732 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 :> /127.0.0.1:42765] FLUSH
06:38:55.732 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 :> /127.0.0.1:42765] INACTIVE
06:38:55.732 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4aed4bd7, /127.0.0.1:37070 :> /127.0.0.1:42765] UNREGISTERED
06:38:55.732 [nioEventLoopGroup-452-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-16
06:38:55.763 [nioEventLoopGroup-436-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-14
06:38:55.980 [MockServer thread for port: 37939] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 37939
06:38:55.980 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.982 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.982 [nioEventLoopGroup-484-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.982 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.982 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 => /127.0.0.1:37939] FLUSH
06:38:55.983 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 => /127.0.0.1:37939] FLUSH
06:38:55.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 :> /127.0.0.1:37939] INACTIVE
06:38:55.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6e3c1e, /127.0.0.1:39116 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.983 [nioEventLoopGroup-485-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-485-1
06:38:55.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.985 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.986 [nioEventLoopGroup-484-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:55.986 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.986 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 => /127.0.0.1:37939] FLUSH
06:38:55.986 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.986 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 => /127.0.0.1:37939] FLUSH
06:38:55.986 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 :> /127.0.0.1:37939] INACTIVE
06:38:55.986 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7afc2dd4, /127.0.0.1:39118 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.986 [nioEventLoopGroup-486-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-486-1
06:38:55.987 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.988 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.988 [nioEventLoopGroup-484-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:55.989 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.989 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 => /127.0.0.1:37939] FLUSH
06:38:55.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.989 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 => /127.0.0.1:37939] FLUSH
06:38:55.989 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 :> /127.0.0.1:37939] INACTIVE
06:38:55.989 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x208bd1d9, /127.0.0.1:39120 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.989 [nioEventLoopGroup-487-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-487-1
06:38:55.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.990 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.991 [nioEventLoopGroup-484-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:55.991 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.991 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 => /127.0.0.1:37939] FLUSH
06:38:55.991 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.991 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 => /127.0.0.1:37939] FLUSH
06:38:55.991 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 :> /127.0.0.1:37939] INACTIVE
06:38:55.991 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x224d174c, /127.0.0.1:39122 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.991 [nioEventLoopGroup-488-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-488-1
06:38:55.992 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.993 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.993 [nioEventLoopGroup-484-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:55.993 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.993 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 => /127.0.0.1:37939] FLUSH
06:38:55.994 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.994 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 => /127.0.0.1:37939] FLUSH
06:38:55.994 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 :> /127.0.0.1:37939] INACTIVE
06:38:55.994 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35f9075f, /127.0.0.1:39124 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.994 [nioEventLoopGroup-489-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-489-1
06:38:55.994 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.996 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.996 [nioEventLoopGroup-484-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:55.997 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.997 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 => /127.0.0.1:37939] FLUSH
06:38:55.997 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:55.997 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 => /127.0.0.1:37939] FLUSH
06:38:55.997 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 :> /127.0.0.1:37939] INACTIVE
06:38:55.997 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec70776c, /127.0.0.1:39126 :> /127.0.0.1:37939] UNREGISTERED
06:38:55.997 [nioEventLoopGroup-490-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-490-1
06:38:55.998 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:55.999 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:55.999 [nioEventLoopGroup-484-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:55.999 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:55.999 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 => /127.0.0.1:37939] FLUSH
06:38:56.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.000 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 => /127.0.0.1:37939] FLUSH
06:38:56.000 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 :> /127.0.0.1:37939] INACTIVE
06:38:56.000 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12d42fc5, /127.0.0.1:39128 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.000 [nioEventLoopGroup-491-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-491-1
06:38:56.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.001 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.002 [nioEventLoopGroup-484-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:56.002 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.002 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 => /127.0.0.1:37939] FLUSH
06:38:56.002 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.002 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 => /127.0.0.1:37939] FLUSH
06:38:56.002 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 :> /127.0.0.1:37939] INACTIVE
06:38:56.002 [nioEventLoopGroup-492-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-492-1
06:38:56.002 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cdcaf6d, /127.0.0.1:39130 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.006 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.007 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.008 [nioEventLoopGroup-484-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:56.008 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.008 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 => /127.0.0.1:37939] FLUSH
06:38:56.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.008 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 => /127.0.0.1:37939] FLUSH
06:38:56.008 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 :> /127.0.0.1:37939] INACTIVE
06:38:56.008 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa64ae255, /127.0.0.1:39132 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.008 [nioEventLoopGroup-493-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-493-1
06:38:56.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.011 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.011 [nioEventLoopGroup-484-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:56.011 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.011 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 => /127.0.0.1:37939] FLUSH
06:38:56.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.012 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 => /127.0.0.1:37939] FLUSH
06:38:56.012 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 :> /127.0.0.1:37939] INACTIVE
06:38:56.012 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9ed2ede, /127.0.0.1:39134 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.012 [nioEventLoopGroup-494-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-494-1
06:38:56.013 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.015 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.015 [nioEventLoopGroup-484-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:56.016 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.016 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 => /127.0.0.1:37939] FLUSH
06:38:56.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.016 [nioEventLoopGroup-495-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-495-1
06:38:56.016 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 => /127.0.0.1:37939] FLUSH
06:38:56.016 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 :> /127.0.0.1:37939] INACTIVE
06:38:56.016 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabc500a3, /127.0.0.1:39136 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.017 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.018 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.019 [nioEventLoopGroup-484-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:56.019 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.019 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 => /127.0.0.1:37939] FLUSH
06:38:56.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.019 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 => /127.0.0.1:37939] FLUSH
06:38:56.019 [nioEventLoopGroup-496-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-496-1
06:38:56.019 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 :> /127.0.0.1:37939] INACTIVE
06:38:56.019 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1144b9db, /127.0.0.1:39138 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.021 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 => /127.0.0.1:37939] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.021 [nioEventLoopGroup-484-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.022 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.022 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 => /127.0.0.1:37939] FLUSH
06:38:56.022 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.022 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 => /127.0.0.1:37939] FLUSH
06:38:56.022 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 :> /127.0.0.1:37939] INACTIVE
06:38:56.022 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa17189dd, /127.0.0.1:39140 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.022 [nioEventLoopGroup-497-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-497-1
06:38:56.026 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67515e7f, /127.0.0.1:39142 => /127.0.0.1:37939] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:37939
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
06:38:56.027 [nioEventLoopGroup-484-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.028 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67515e7f, /127.0.0.1:39142 => /127.0.0.1:37939] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
06:38:56.028 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67515e7f, /127.0.0.1:39142 => /127.0.0.1:37939] FLUSH
06:38:56.049 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc87ccf67, /127.0.0.1:39144 => /127.0.0.1:37939] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:37939
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
06:38:56.049 [nioEventLoopGroup-484-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37939" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.050 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc87ccf67, /127.0.0.1:39144 => /127.0.0.1:37939] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
06:38:56.050 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc87ccf67, /127.0.0.1:39144 => /127.0.0.1:37939] FLUSH
06:38:56.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:56.052 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 => /127.0.0.1:37939] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:37939
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:56.052 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 => /127.0.0.1:37939] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.052 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 => /127.0.0.1:37939] FLUSH
06:38:56.052 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 => /127.0.0.1:37939] CLOSE()
06:38:56.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.052 [nioEventLoopGroup-498-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-498-1
06:38:56.057 [nioEventLoopGroup-484-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-1
06:38:56.057 [nioEventLoopGroup-484-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-2
06:38:56.057 [nioEventLoopGroup-484-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-7
06:38:56.057 [nioEventLoopGroup-484-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-8
06:38:56.057 [nioEventLoopGroup-484-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-13
06:38:56.057 [nioEventLoopGroup-484-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-4
06:38:56.057 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67515e7f, /127.0.0.1:39142 :> /127.0.0.1:37939] INACTIVE
06:38:56.057 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc87ccf67, /127.0.0.1:39144 :> /127.0.0.1:37939] INACTIVE
06:38:56.057 [nioEventLoopGroup-484-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-5
06:38:56.058 [nioEventLoopGroup-484-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-3
06:38:56.058 [nioEventLoopGroup-484-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-6
06:38:56.058 [nioEventLoopGroup-484-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-9
06:38:56.058 [nioEventLoopGroup-484-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-10
06:38:56.058 [nioEventLoopGroup-484-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-11
06:38:56.058 [nioEventLoopGroup-484-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-12
06:38:56.058 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67515e7f, /127.0.0.1:39142 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.058 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc87ccf67, /127.0.0.1:39144 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.128 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 :> /127.0.0.1:34796] FLUSH
06:38:56.129 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 :> /127.0.0.1:34796] INACTIVE
06:38:56.129 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04ff3d83, /127.0.0.1:46322 :> /127.0.0.1:34796] UNREGISTERED
06:38:56.129 [nioEventLoopGroup-468-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-15
06:38:56.234 [nioEventLoopGroup-452-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-14
06:38:56.234 [nioEventLoopGroup-452-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-15
06:38:56.409 [MockServer thread for port: 34514] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34514
06:38:56.409 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.410 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.411 [nioEventLoopGroup-500-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.411 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.411 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 => /127.0.0.1:34514] FLUSH
06:38:56.411 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.411 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 => /127.0.0.1:34514] FLUSH
06:38:56.411 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 :> /127.0.0.1:34514] INACTIVE
06:38:56.411 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c713766, /127.0.0.1:41414 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.411 [nioEventLoopGroup-501-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-501-1
06:38:56.412 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.413 [nioEventLoopGroup-500-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 => /127.0.0.1:34514] FLUSH
06:38:56.413 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 => /127.0.0.1:34514] FLUSH
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 :> /127.0.0.1:34514] INACTIVE
06:38:56.413 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84531286, /127.0.0.1:41416 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.413 [nioEventLoopGroup-502-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-502-1
06:38:56.414 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.415 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.416 [nioEventLoopGroup-500-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:56.416 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.416 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 => /127.0.0.1:34514] FLUSH
06:38:56.416 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.416 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 => /127.0.0.1:34514] FLUSH
06:38:56.416 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 :> /127.0.0.1:34514] INACTIVE
06:38:56.416 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x980589d6, /127.0.0.1:41418 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.416 [nioEventLoopGroup-503-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-503-1
06:38:56.416 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.417 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.418 [nioEventLoopGroup-500-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.418 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.418 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 => /127.0.0.1:34514] FLUSH
06:38:56.418 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.418 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 => /127.0.0.1:34514] FLUSH
06:38:56.418 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 :> /127.0.0.1:34514] INACTIVE
06:38:56.418 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3170a, /127.0.0.1:41420 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.418 [nioEventLoopGroup-504-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-504-1
06:38:56.419 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.420 [nioEventLoopGroup-500-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 => /127.0.0.1:34514] FLUSH
06:38:56.420 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 => /127.0.0.1:34514] FLUSH
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 :> /127.0.0.1:34514] INACTIVE
06:38:56.420 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5efc2410, /127.0.0.1:41422 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.420 [nioEventLoopGroup-505-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-505-1
06:38:56.421 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.422 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.423 [nioEventLoopGroup-500-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:56.423 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.423 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 => /127.0.0.1:34514] FLUSH
06:38:56.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.423 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 => /127.0.0.1:34514] FLUSH
06:38:56.423 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 :> /127.0.0.1:34514] INACTIVE
06:38:56.423 [nioEventLoopGroup-506-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-506-1
06:38:56.423 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b0850a9, /127.0.0.1:41424 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.424 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.425 [nioEventLoopGroup-500-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 => /127.0.0.1:34514] FLUSH
06:38:56.425 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 => /127.0.0.1:34514] FLUSH
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 :> /127.0.0.1:34514] INACTIVE
06:38:56.425 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0901de7, /127.0.0.1:41426 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.425 [nioEventLoopGroup-507-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-507-1
06:38:56.426 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.427 [nioEventLoopGroup-500-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 => /127.0.0.1:34514] FLUSH
06:38:56.427 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 => /127.0.0.1:34514] FLUSH
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 :> /127.0.0.1:34514] INACTIVE
06:38:56.427 [nioEventLoopGroup-508-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-508-1
06:38:56.427 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c632cf6, /127.0.0.1:41428 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.428 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.429 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.430 [nioEventLoopGroup-500-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:56.430 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.430 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 => /127.0.0.1:34514] FLUSH
06:38:56.430 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.430 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 => /127.0.0.1:34514] FLUSH
06:38:56.430 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 :> /127.0.0.1:34514] INACTIVE
06:38:56.430 [nioEventLoopGroup-509-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-509-1
06:38:56.430 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb67c0d3, /127.0.0.1:41430 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.431 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.432 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.433 [nioEventLoopGroup-500-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:56.433 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.433 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 => /127.0.0.1:34514] FLUSH
06:38:56.433 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.433 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 => /127.0.0.1:34514] FLUSH
06:38:56.433 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 :> /127.0.0.1:34514] INACTIVE
06:38:56.433 [nioEventLoopGroup-510-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-510-1
06:38:56.433 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a941edc, /127.0.0.1:41432 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.434 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.436 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.436 [nioEventLoopGroup-500-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:56.436 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.437 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 => /127.0.0.1:34514] FLUSH
06:38:56.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.437 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 => /127.0.0.1:34514] FLUSH
06:38:56.437 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 :> /127.0.0.1:34514] INACTIVE
06:38:56.437 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8b8d060, /127.0.0.1:41434 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.437 [nioEventLoopGroup-511-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-511-1
06:38:56.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.439 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.440 [nioEventLoopGroup-500-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:56.440 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.440 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 => /127.0.0.1:34514] FLUSH
06:38:56.440 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.440 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 => /127.0.0.1:34514] FLUSH
06:38:56.440 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 :> /127.0.0.1:34514] INACTIVE
06:38:56.440 [nioEventLoopGroup-512-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-512-1
06:38:56.440 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa421379d, /127.0.0.1:41436 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.441 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.443 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 => /127.0.0.1:34514] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.444 [nioEventLoopGroup-500-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.444 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.444 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 => /127.0.0.1:34514] FLUSH
06:38:56.444 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.444 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 => /127.0.0.1:34514] FLUSH
06:38:56.444 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 :> /127.0.0.1:34514] INACTIVE
06:38:56.444 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedbe74c9, /127.0.0.1:41438 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.444 [nioEventLoopGroup-513-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-513-1
06:38:56.482 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34514
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:56.482 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.482 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.483 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:56.483 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.483 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.483 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
06:38:56.483 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.484 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
06:38:56.484 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] FLUSH
06:38:56.485 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34514
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:56.485 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.485 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.486 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:56.486 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.486 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.486 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
06:38:56.486 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34514" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.486 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
06:38:56.486 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 => /127.0.0.1:34514] FLUSH
06:38:56.487 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:56.488 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 => /127.0.0.1:34514] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34514
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:56.488 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 => /127.0.0.1:34514] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.488 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 => /127.0.0.1:34514] FLUSH
06:38:56.488 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 => /127.0.0.1:34514] CLOSE()
06:38:56.488 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.489 [nioEventLoopGroup-514-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-514-1
06:38:56.489 [nioEventLoopGroup-500-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-1
06:38:56.490 [nioEventLoopGroup-500-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-2
06:38:56.490 [nioEventLoopGroup-500-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-3
06:38:56.490 [nioEventLoopGroup-500-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-4
06:38:56.490 [nioEventLoopGroup-500-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-5
06:38:56.490 [nioEventLoopGroup-500-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-7
06:38:56.490 [nioEventLoopGroup-500-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-8
06:38:56.490 [nioEventLoopGroup-500-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-6
06:38:56.490 [nioEventLoopGroup-500-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-9
06:38:56.490 [nioEventLoopGroup-500-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-10
06:38:56.490 [nioEventLoopGroup-500-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-13
06:38:56.490 [nioEventLoopGroup-500-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-11
06:38:56.490 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 :> /127.0.0.1:34514] INACTIVE
06:38:56.490 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x338dcc18, /127.0.0.1:41440 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.494 [nioEventLoopGroup-500-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-12
06:38:56.558 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 :> /127.0.0.1:37939] FLUSH
06:38:56.558 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 :> /127.0.0.1:37939] INACTIVE
06:38:56.558 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc315cd96, /127.0.0.1:39146 :> /127.0.0.1:37939] UNREGISTERED
06:38:56.558 [nioEventLoopGroup-484-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-16
06:38:56.630 [nioEventLoopGroup-468-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-14
06:38:56.840 [MockServer thread for port: 43973] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43973
06:38:56.841 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.842 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.843 [nioEventLoopGroup-516-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.843 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.843 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 => /127.0.0.1:43973] FLUSH
06:38:56.843 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.843 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 => /127.0.0.1:43973] FLUSH
06:38:56.843 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 :> /127.0.0.1:43973] INACTIVE
06:38:56.843 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02deb175, /127.0.0.1:57230 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.843 [nioEventLoopGroup-517-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-517-1
06:38:56.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.845 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.846 [nioEventLoopGroup-516-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:56.846 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.846 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 => /127.0.0.1:43973] FLUSH
06:38:56.846 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.846 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 => /127.0.0.1:43973] FLUSH
06:38:56.846 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 :> /127.0.0.1:43973] INACTIVE
06:38:56.846 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd10aa8d4, /127.0.0.1:57232 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.846 [nioEventLoopGroup-518-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-518-1
06:38:56.847 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.848 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.848 [nioEventLoopGroup-516-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:56.849 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.849 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 => /127.0.0.1:43973] FLUSH
06:38:56.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.849 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 => /127.0.0.1:43973] FLUSH
06:38:56.849 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 :> /127.0.0.1:43973] INACTIVE
06:38:56.849 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a6ee2bf, /127.0.0.1:57234 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.849 [nioEventLoopGroup-519-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-519-1
06:38:56.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.850 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.851 [nioEventLoopGroup-516-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.851 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.851 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 => /127.0.0.1:43973] FLUSH
06:38:56.851 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.851 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 => /127.0.0.1:43973] FLUSH
06:38:56.851 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 :> /127.0.0.1:43973] INACTIVE
06:38:56.851 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed3550e7, /127.0.0.1:57236 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.851 [nioEventLoopGroup-520-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-520-1
06:38:56.851 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.852 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.853 [nioEventLoopGroup-516-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:56.853 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.853 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 => /127.0.0.1:43973] FLUSH
06:38:56.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.853 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 => /127.0.0.1:43973] FLUSH
06:38:56.853 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 :> /127.0.0.1:43973] INACTIVE
06:38:56.853 [nioEventLoopGroup-521-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-521-1
06:38:56.853 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c56f7c9, /127.0.0.1:57238 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.855 [nioEventLoopGroup-516-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 => /127.0.0.1:43973] FLUSH
06:38:56.855 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 => /127.0.0.1:43973] FLUSH
06:38:56.855 [nioEventLoopGroup-522-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-522-1
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 :> /127.0.0.1:43973] INACTIVE
06:38:56.855 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53f0f248, /127.0.0.1:57240 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.856 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.857 [nioEventLoopGroup-516-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 => /127.0.0.1:43973] FLUSH
06:38:56.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 => /127.0.0.1:43973] FLUSH
06:38:56.857 [nioEventLoopGroup-523-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-523-1
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 :> /127.0.0.1:43973] INACTIVE
06:38:56.857 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa32a6c, /127.0.0.1:57242 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.858 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.858 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.859 [nioEventLoopGroup-516-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:56.859 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.859 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 => /127.0.0.1:43973] FLUSH
06:38:56.859 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.859 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 => /127.0.0.1:43973] FLUSH
06:38:56.859 [nioEventLoopGroup-524-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-524-1
06:38:56.859 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 :> /127.0.0.1:43973] INACTIVE
06:38:56.859 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea5d5358, /127.0.0.1:57244 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.860 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.861 [nioEventLoopGroup-516-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 => /127.0.0.1:43973] FLUSH
06:38:56.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 => /127.0.0.1:43973] FLUSH
06:38:56.861 [nioEventLoopGroup-525-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-525-1
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 :> /127.0.0.1:43973] INACTIVE
06:38:56.861 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x205130ed, /127.0.0.1:57246 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.862 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.863 [nioEventLoopGroup-516-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:56.863 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.863 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 => /127.0.0.1:43973] FLUSH
06:38:56.863 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.863 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 => /127.0.0.1:43973] FLUSH
06:38:56.863 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 :> /127.0.0.1:43973] INACTIVE
06:38:56.863 [nioEventLoopGroup-526-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-526-1
06:38:56.863 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x539a53bd, /127.0.0.1:57248 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.863 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.864 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.865 [nioEventLoopGroup-516-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:56.865 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.865 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 => /127.0.0.1:43973] FLUSH
06:38:56.865 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.865 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 => /127.0.0.1:43973] FLUSH
06:38:56.865 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 :> /127.0.0.1:43973] INACTIVE
06:38:56.865 [nioEventLoopGroup-527-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-527-1
06:38:56.865 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf53db439, /127.0.0.1:57250 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.865 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.867 [nioEventLoopGroup-516-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 => /127.0.0.1:43973] FLUSH
06:38:56.867 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 => /127.0.0.1:43973] FLUSH
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 :> /127.0.0.1:43973] INACTIVE
06:38:56.867 [nioEventLoopGroup-528-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-528-1
06:38:56.867 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd4c1640, /127.0.0.1:57252 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.869 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 => /127.0.0.1:43973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:56.871 [nioEventLoopGroup-516-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 => /127.0.0.1:43973] FLUSH
06:38:56.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 => /127.0.0.1:43973] FLUSH
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 :> /127.0.0.1:43973] INACTIVE
06:38:56.871 [nioEventLoopGroup-529-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-529-1
06:38:56.871 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf7c6672, /127.0.0.1:57254 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.879 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf1d64f8, /127.0.0.1:57256 => /127.0.0.1:43973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:43973
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:56.886 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.886 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.886 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
06:38:56.886 [nioEventLoopGroup-516-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.887 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf1d64f8, /127.0.0.1:57256 => /127.0.0.1:43973] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:56.887 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf1d64f8, /127.0.0.1:57256 => /127.0.0.1:43973] FLUSH
06:38:56.890 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x253c7daa, /127.0.0.1:57258 => /127.0.0.1:43973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:43973
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:56.890 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.891 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:56.891 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
06:38:56.891 [nioEventLoopGroup-516-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43973" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:56.891 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x253c7daa, /127.0.0.1:57258 => /127.0.0.1:43973] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:56.891 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x253c7daa, /127.0.0.1:57258 => /127.0.0.1:43973] FLUSH
06:38:56.892 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:56.893 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 => /127.0.0.1:43973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43973
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:56.893 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 => /127.0.0.1:43973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:56.893 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 => /127.0.0.1:43973] FLUSH
06:38:56.894 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 => /127.0.0.1:43973] CLOSE()
06:38:56.894 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:56.894 [nioEventLoopGroup-530-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-530-1
06:38:56.895 [nioEventLoopGroup-516-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-3
06:38:56.895 [nioEventLoopGroup-516-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-6
06:38:56.895 [nioEventLoopGroup-516-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-2
06:38:56.895 [nioEventLoopGroup-516-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-7
06:38:56.895 [nioEventLoopGroup-516-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-4
06:38:56.895 [nioEventLoopGroup-516-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-9
06:38:56.895 [nioEventLoopGroup-516-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-8
06:38:56.895 [nioEventLoopGroup-516-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-11
06:38:56.895 [nioEventLoopGroup-516-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-13
06:38:56.895 [nioEventLoopGroup-516-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-12
06:38:56.895 [nioEventLoopGroup-516-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-10
06:38:56.895 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x253c7daa, /127.0.0.1:57258 :> /127.0.0.1:43973] INACTIVE
06:38:56.895 [nioEventLoopGroup-516-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-1
06:38:56.895 [nioEventLoopGroup-516-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-5
06:38:56.895 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf1d64f8, /127.0.0.1:57256 :> /127.0.0.1:43973] INACTIVE
06:38:56.895 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x253c7daa, /127.0.0.1:57258 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.895 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf1d64f8, /127.0.0.1:57256 :> /127.0.0.1:43973] UNREGISTERED
06:38:56.990 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 :> /127.0.0.1:34514] FLUSH
06:38:56.990 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 :> /127.0.0.1:34514] INACTIVE
06:38:56.990 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46d0abe0, /127.0.0.1:41442 :> /127.0.0.1:34514] UNREGISTERED
06:38:56.990 [nioEventLoopGroup-500-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-15
06:38:57.058 [nioEventLoopGroup-484-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-15
06:38:57.059 [nioEventLoopGroup-484-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-14
06:38:57.247 [MockServer thread for port: 45316] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45316
06:38:57.248 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.249 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.249 [nioEventLoopGroup-532-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.249 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.250 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 => /127.0.0.1:45316] FLUSH
06:38:57.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.250 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 => /127.0.0.1:45316] FLUSH
06:38:57.250 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 :> /127.0.0.1:45316] INACTIVE
06:38:57.250 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32edf242, /127.0.0.1:58952 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.250 [nioEventLoopGroup-533-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-533-1
06:38:57.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.252 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.252 [nioEventLoopGroup-532-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:57.252 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.253 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 => /127.0.0.1:45316] FLUSH
06:38:57.253 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.253 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 => /127.0.0.1:45316] FLUSH
06:38:57.253 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 :> /127.0.0.1:45316] INACTIVE
06:38:57.253 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7736e1b, /127.0.0.1:58954 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.253 [nioEventLoopGroup-534-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-534-1
06:38:57.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.255 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.255 [nioEventLoopGroup-532-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:57.256 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.256 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 => /127.0.0.1:45316] FLUSH
06:38:57.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.256 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 => /127.0.0.1:45316] FLUSH
06:38:57.256 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 :> /127.0.0.1:45316] INACTIVE
06:38:57.256 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5300fb8d, /127.0.0.1:58956 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.256 [nioEventLoopGroup-535-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-535-1
06:38:57.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.257 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.257 [nioEventLoopGroup-532-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.257 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.258 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 => /127.0.0.1:45316] FLUSH
06:38:57.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.258 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 => /127.0.0.1:45316] FLUSH
06:38:57.258 [nioEventLoopGroup-536-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-536-1
06:38:57.258 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 :> /127.0.0.1:45316] INACTIVE
06:38:57.258 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6efa0455, /127.0.0.1:58958 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.259 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.260 [nioEventLoopGroup-532-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:57.260 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.260 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 => /127.0.0.1:45316] FLUSH
06:38:57.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.260 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 => /127.0.0.1:45316] FLUSH
06:38:57.260 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 :> /127.0.0.1:45316] INACTIVE
06:38:57.260 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15feb2b9, /127.0.0.1:58960 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.260 [nioEventLoopGroup-537-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-537-1
06:38:57.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.261 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.262 [nioEventLoopGroup-532-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:57.262 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.262 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 => /127.0.0.1:45316] FLUSH
06:38:57.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.262 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 => /127.0.0.1:45316] FLUSH
06:38:57.262 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 :> /127.0.0.1:45316] INACTIVE
06:38:57.262 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636d1447, /127.0.0.1:58962 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.262 [nioEventLoopGroup-538-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-538-1
06:38:57.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.263 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.264 [nioEventLoopGroup-532-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:57.264 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.264 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 => /127.0.0.1:45316] FLUSH
06:38:57.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.264 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 => /127.0.0.1:45316] FLUSH
06:38:57.264 [nioEventLoopGroup-539-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-539-1
06:38:57.264 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 :> /127.0.0.1:45316] INACTIVE
06:38:57.264 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x492fa29b, /127.0.0.1:58964 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.265 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.265 [nioEventLoopGroup-532-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:57.265 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.265 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 => /127.0.0.1:45316] FLUSH
06:38:57.266 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.266 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 => /127.0.0.1:45316] FLUSH
06:38:57.266 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 :> /127.0.0.1:45316] INACTIVE
06:38:57.266 [nioEventLoopGroup-540-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-540-1
06:38:57.266 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba75327, /127.0.0.1:58966 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.266 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.267 [nioEventLoopGroup-532-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 => /127.0.0.1:45316] FLUSH
06:38:57.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 => /127.0.0.1:45316] FLUSH
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 :> /127.0.0.1:45316] INACTIVE
06:38:57.267 [nioEventLoopGroup-541-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-541-1
06:38:57.267 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4385bd1b, /127.0.0.1:58968 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.268 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.269 [nioEventLoopGroup-532-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 => /127.0.0.1:45316] FLUSH
06:38:57.269 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 => /127.0.0.1:45316] FLUSH
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 :> /127.0.0.1:45316] INACTIVE
06:38:57.269 [nioEventLoopGroup-542-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-542-1
06:38:57.269 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x605d9ccd, /127.0.0.1:58970 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.271 [nioEventLoopGroup-532-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 => /127.0.0.1:45316] FLUSH
06:38:57.271 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 => /127.0.0.1:45316] FLUSH
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 :> /127.0.0.1:45316] INACTIVE
06:38:57.271 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d070e5f, /127.0.0.1:58972 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.271 [nioEventLoopGroup-543-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-543-1
06:38:57.272 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.273 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.273 [nioEventLoopGroup-532-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:57.273 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.273 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 => /127.0.0.1:45316] FLUSH
06:38:57.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.273 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 => /127.0.0.1:45316] FLUSH
06:38:57.274 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 :> /127.0.0.1:45316] INACTIVE
06:38:57.274 [nioEventLoopGroup-544-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-544-1
06:38:57.274 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f61d573, /127.0.0.1:58974 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.275 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 => /127.0.0.1:45316] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.275 [nioEventLoopGroup-532-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.275 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.276 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 => /127.0.0.1:45316] FLUSH
06:38:57.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.276 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 => /127.0.0.1:45316] FLUSH
06:38:57.276 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 :> /127.0.0.1:45316] INACTIVE
06:38:57.276 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb8dfe28, /127.0.0.1:58976 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.276 [nioEventLoopGroup-545-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-545-1
06:38:57.279 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45316
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
06:38:57.280 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.280 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.280 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
06:38:57.280 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:57.280 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:57.280 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] FLUSH
06:38:57.281 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:45316
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
06:38:57.282 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.282 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.282 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
06:38:57.282 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:45316" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:57.282 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:57.282 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 => /127.0.0.1:45316] FLUSH
06:38:57.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:57.284 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 => /127.0.0.1:45316] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45316
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:57.284 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 => /127.0.0.1:45316] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.284 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 => /127.0.0.1:45316] FLUSH
06:38:57.284 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 => /127.0.0.1:45316] CLOSE()
06:38:57.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.284 [nioEventLoopGroup-546-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-546-1
06:38:57.285 [nioEventLoopGroup-532-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-2
06:38:57.285 [nioEventLoopGroup-532-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-7
06:38:57.285 [nioEventLoopGroup-532-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-13
06:38:57.285 [nioEventLoopGroup-532-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-1
06:38:57.285 [nioEventLoopGroup-532-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-4
06:38:57.285 [nioEventLoopGroup-532-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-3
06:38:57.285 [nioEventLoopGroup-532-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-5
06:38:57.285 [nioEventLoopGroup-532-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-6
06:38:57.285 [nioEventLoopGroup-532-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-8
06:38:57.285 [nioEventLoopGroup-532-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-9
06:38:57.285 [nioEventLoopGroup-532-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-10
06:38:57.285 [nioEventLoopGroup-532-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-11
06:38:57.285 [nioEventLoopGroup-532-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-12
06:38:57.285 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 :> /127.0.0.1:45316] INACTIVE
06:38:57.285 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e8ba3bc, /127.0.0.1:58978 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.395 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 :> /127.0.0.1:43973] FLUSH
06:38:57.395 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 :> /127.0.0.1:43973] INACTIVE
06:38:57.395 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27c1b3a8, /127.0.0.1:57260 :> /127.0.0.1:43973] UNREGISTERED
06:38:57.395 [nioEventLoopGroup-516-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-16
06:38:57.491 [nioEventLoopGroup-500-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-14
06:38:57.636 [MockServer thread for port: 36437] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36437
06:38:57.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.638 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.639 [nioEventLoopGroup-548-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.639 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.639 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 => /127.0.0.1:36437] FLUSH
06:38:57.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.639 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 => /127.0.0.1:36437] FLUSH
06:38:57.639 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 :> /127.0.0.1:36437] INACTIVE
06:38:57.639 [nioEventLoopGroup-549-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-549-1
06:38:57.639 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e281ff7, /127.0.0.1:43464 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.641 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.641 [nioEventLoopGroup-548-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:57.641 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.641 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 => /127.0.0.1:36437] FLUSH
06:38:57.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.642 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 => /127.0.0.1:36437] FLUSH
06:38:57.642 [nioEventLoopGroup-550-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-550-1
06:38:57.642 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 :> /127.0.0.1:36437] INACTIVE
06:38:57.642 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca5e211d, /127.0.0.1:43466 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.643 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.644 [nioEventLoopGroup-548-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:57.644 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.644 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 => /127.0.0.1:36437] FLUSH
06:38:57.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.644 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 => /127.0.0.1:36437] FLUSH
06:38:57.644 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 :> /127.0.0.1:36437] INACTIVE
06:38:57.644 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf8b3db1, /127.0.0.1:43468 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.644 [nioEventLoopGroup-551-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-551-1
06:38:57.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.645 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.646 [nioEventLoopGroup-548-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.646 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.646 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 => /127.0.0.1:36437] FLUSH
06:38:57.646 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.646 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 => /127.0.0.1:36437] FLUSH
06:38:57.646 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 :> /127.0.0.1:36437] INACTIVE
06:38:57.646 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4690e4a9, /127.0.0.1:43470 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.646 [nioEventLoopGroup-552-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-552-1
06:38:57.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.648 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.649 [nioEventLoopGroup-548-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:57.649 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.649 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 => /127.0.0.1:36437] FLUSH
06:38:57.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.649 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 => /127.0.0.1:36437] FLUSH
06:38:57.649 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 :> /127.0.0.1:36437] INACTIVE
06:38:57.649 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde59b427, /127.0.0.1:43472 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.649 [nioEventLoopGroup-553-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-553-1
06:38:57.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.651 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.651 [nioEventLoopGroup-548-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:57.651 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.651 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 => /127.0.0.1:36437] FLUSH
06:38:57.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.652 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 => /127.0.0.1:36437] FLUSH
06:38:57.652 [nioEventLoopGroup-554-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-554-1
06:38:57.652 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 :> /127.0.0.1:36437] INACTIVE
06:38:57.652 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8829bd93, /127.0.0.1:43474 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.653 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.653 [nioEventLoopGroup-548-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:57.653 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.653 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 => /127.0.0.1:36437] FLUSH
06:38:57.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.654 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 => /127.0.0.1:36437] FLUSH
06:38:57.654 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 :> /127.0.0.1:36437] INACTIVE
06:38:57.654 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b2fa86b, /127.0.0.1:43476 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.654 [nioEventLoopGroup-555-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-555-1
06:38:57.654 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.655 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.655 [nioEventLoopGroup-548-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:57.655 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.656 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 => /127.0.0.1:36437] FLUSH
06:38:57.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.656 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 => /127.0.0.1:36437] FLUSH
06:38:57.656 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 :> /127.0.0.1:36437] INACTIVE
06:38:57.656 [nioEventLoopGroup-556-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-556-1
06:38:57.656 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20c415b1, /127.0.0.1:43478 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.657 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.657 [nioEventLoopGroup-548-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:57.658 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.658 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 => /127.0.0.1:36437] FLUSH
06:38:57.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.658 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 => /127.0.0.1:36437] FLUSH
06:38:57.658 [nioEventLoopGroup-557-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-557-1
06:38:57.658 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 :> /127.0.0.1:36437] INACTIVE
06:38:57.658 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec077c0e, /127.0.0.1:43480 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.660 [nioEventLoopGroup-548-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 => /127.0.0.1:36437] FLUSH
06:38:57.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 => /127.0.0.1:36437] FLUSH
06:38:57.660 [nioEventLoopGroup-558-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-558-1
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 :> /127.0.0.1:36437] INACTIVE
06:38:57.660 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48571527, /127.0.0.1:43482 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.661 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.662 [nioEventLoopGroup-548-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 => /127.0.0.1:36437] FLUSH
06:38:57.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 => /127.0.0.1:36437] FLUSH
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 :> /127.0.0.1:36437] INACTIVE
06:38:57.662 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0036ec2, /127.0.0.1:43484 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.662 [nioEventLoopGroup-559-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-559-1
06:38:57.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.664 [nioEventLoopGroup-548-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 => /127.0.0.1:36437] FLUSH
06:38:57.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 => /127.0.0.1:36437] FLUSH
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 :> /127.0.0.1:36437] INACTIVE
06:38:57.664 [nioEventLoopGroup-560-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-560-1
06:38:57.664 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x58b956a1, /127.0.0.1:43486 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 => /127.0.0.1:36437] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:57.666 [nioEventLoopGroup-548-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 => /127.0.0.1:36437] FLUSH
06:38:57.666 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 => /127.0.0.1:36437] FLUSH
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 :> /127.0.0.1:36437] INACTIVE
06:38:57.666 [nioEventLoopGroup-561-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-561-1
06:38:57.666 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6fd3640, /127.0.0.1:43488 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.674 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78f51bdd, /127.0.0.1:43490 => /127.0.0.1:36437] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:36437
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:57.674 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.675 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
06:38:57.675 [nioEventLoopGroup-548-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:57.675 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78f51bdd, /127.0.0.1:43490 => /127.0.0.1:36437] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:57.675 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78f51bdd, /127.0.0.1:43490 => /127.0.0.1:36437] FLUSH
06:38:57.679 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929cb06c, /127.0.0.1:43492 => /127.0.0.1:36437] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:36437
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:57.679 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:57.679 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
06:38:57.679 [nioEventLoopGroup-548-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36437" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:57.679 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929cb06c, /127.0.0.1:43492 => /127.0.0.1:36437] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:57.679 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929cb06c, /127.0.0.1:43492 => /127.0.0.1:36437] FLUSH
06:38:57.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:57.681 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 => /127.0.0.1:36437] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36437
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:57.681 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 => /127.0.0.1:36437] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:57.681 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 => /127.0.0.1:36437] FLUSH
06:38:57.681 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 => /127.0.0.1:36437] CLOSE()
06:38:57.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:57.682 [nioEventLoopGroup-562-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-562-1
06:38:57.682 [nioEventLoopGroup-548-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-1
06:38:57.682 [nioEventLoopGroup-548-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-2
06:38:57.682 [nioEventLoopGroup-548-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-7
06:38:57.682 [nioEventLoopGroup-548-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-6
06:38:57.682 [nioEventLoopGroup-548-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-10
06:38:57.682 [nioEventLoopGroup-548-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-12
06:38:57.682 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929cb06c, /127.0.0.1:43492 :> /127.0.0.1:36437] INACTIVE
06:38:57.682 [nioEventLoopGroup-548-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-8
06:38:57.682 [nioEventLoopGroup-548-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-13
06:38:57.682 [nioEventLoopGroup-548-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-11
06:38:57.682 [nioEventLoopGroup-548-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-4
06:38:57.682 [nioEventLoopGroup-548-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-9
06:38:57.682 [nioEventLoopGroup-548-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-3
06:38:57.682 [nioEventLoopGroup-548-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-5
06:38:57.682 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929cb06c, /127.0.0.1:43492 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.685 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78f51bdd, /127.0.0.1:43490 :> /127.0.0.1:36437] INACTIVE
06:38:57.685 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78f51bdd, /127.0.0.1:43490 :> /127.0.0.1:36437] UNREGISTERED
06:38:57.785 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 :> /127.0.0.1:45316] FLUSH
06:38:57.785 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 :> /127.0.0.1:45316] INACTIVE
06:38:57.785 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d01c37c, /127.0.0.1:58980 :> /127.0.0.1:45316] UNREGISTERED
06:38:57.785 [nioEventLoopGroup-532-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-15
06:38:57.896 [nioEventLoopGroup-516-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-15
06:38:57.896 [nioEventLoopGroup-516-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-14
06:38:58.034 [MockServer thread for port: 35910] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35910
06:38:58.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.036 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.036 [nioEventLoopGroup-564-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.037 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.037 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 => /127.0.0.1:35910] FLUSH
06:38:58.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.037 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 => /127.0.0.1:35910] FLUSH
06:38:58.037 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 :> /127.0.0.1:35910] INACTIVE
06:38:58.037 [nioEventLoopGroup-565-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-565-1
06:38:58.037 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57a83fa4, /127.0.0.1:33396 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.038 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.039 [nioEventLoopGroup-564-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:58.039 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.039 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 => /127.0.0.1:35910] FLUSH
06:38:58.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.039 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 => /127.0.0.1:35910] FLUSH
06:38:58.039 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 :> /127.0.0.1:35910] INACTIVE
06:38:58.040 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6bfa84de, /127.0.0.1:33398 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.039 [nioEventLoopGroup-566-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-566-1
06:38:58.041 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.042 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.043 [nioEventLoopGroup-564-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:58.043 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.043 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 => /127.0.0.1:35910] FLUSH
06:38:58.044 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.044 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 => /127.0.0.1:35910] FLUSH
06:38:58.044 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 :> /127.0.0.1:35910] INACTIVE
06:38:58.044 [nioEventLoopGroup-567-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-567-1
06:38:58.044 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f5354d3, /127.0.0.1:33400 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.046 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.047 [nioEventLoopGroup-564-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.047 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.047 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 => /127.0.0.1:35910] FLUSH
06:38:58.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.047 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 => /127.0.0.1:35910] FLUSH
06:38:58.047 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 :> /127.0.0.1:35910] INACTIVE
06:38:58.047 [nioEventLoopGroup-568-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-568-1
06:38:58.047 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0d3fd92, /127.0.0.1:33402 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.048 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.049 [nioEventLoopGroup-564-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:58.049 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.049 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 => /127.0.0.1:35910] FLUSH
06:38:58.049 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.049 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 => /127.0.0.1:35910] FLUSH
06:38:58.049 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 :> /127.0.0.1:35910] INACTIVE
06:38:58.049 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38398f0e, /127.0.0.1:33404 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.049 [nioEventLoopGroup-569-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-569-1
06:38:58.050 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.051 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.051 [nioEventLoopGroup-564-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:58.052 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.052 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 => /127.0.0.1:35910] FLUSH
06:38:58.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.052 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 => /127.0.0.1:35910] FLUSH
06:38:58.052 [nioEventLoopGroup-570-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-570-1
06:38:58.052 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 :> /127.0.0.1:35910] INACTIVE
06:38:58.052 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981bfc31, /127.0.0.1:33406 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.053 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.054 [nioEventLoopGroup-564-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:58.054 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.054 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 => /127.0.0.1:35910] FLUSH
06:38:58.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.054 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 => /127.0.0.1:35910] FLUSH
06:38:58.054 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 :> /127.0.0.1:35910] INACTIVE
06:38:58.054 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9597a91, /127.0.0.1:33408 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.054 [nioEventLoopGroup-571-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-571-1
06:38:58.087 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.089 [nioEventLoopGroup-564-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 => /127.0.0.1:35910] FLUSH
06:38:58.089 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 => /127.0.0.1:35910] FLUSH
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 :> /127.0.0.1:35910] INACTIVE
06:38:58.089 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479dc33, /127.0.0.1:33410 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.089 [nioEventLoopGroup-572-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-572-1
06:38:58.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.091 [nioEventLoopGroup-564-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 => /127.0.0.1:35910] FLUSH
06:38:58.091 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 => /127.0.0.1:35910] FLUSH
06:38:58.091 [nioEventLoopGroup-573-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-573-1
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 :> /127.0.0.1:35910] INACTIVE
06:38:58.091 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cebd0f3, /127.0.0.1:33412 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.092 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.093 [nioEventLoopGroup-564-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 => /127.0.0.1:35910] FLUSH
06:38:58.093 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 => /127.0.0.1:35910] FLUSH
06:38:58.093 [nioEventLoopGroup-574-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-574-1
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 :> /127.0.0.1:35910] INACTIVE
06:38:58.093 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc80f1995, /127.0.0.1:33414 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.093 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.094 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.095 [nioEventLoopGroup-564-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:58.095 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.095 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 => /127.0.0.1:35910] FLUSH
06:38:58.095 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.095 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 => /127.0.0.1:35910] FLUSH
06:38:58.095 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 :> /127.0.0.1:35910] INACTIVE
06:38:58.095 [nioEventLoopGroup-575-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-575-1
06:38:58.095 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba1dcc88, /127.0.0.1:33416 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.095 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.096 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.097 [nioEventLoopGroup-564-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:58.097 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.097 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 => /127.0.0.1:35910] FLUSH
06:38:58.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.097 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 => /127.0.0.1:35910] FLUSH
06:38:58.097 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 :> /127.0.0.1:35910] INACTIVE
06:38:58.097 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ea56cdc, /127.0.0.1:33418 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.097 [nioEventLoopGroup-576-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-576-1
06:38:58.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.098 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 => /127.0.0.1:35910] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.099 [nioEventLoopGroup-564-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.099 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.099 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 => /127.0.0.1:35910] FLUSH
06:38:58.099 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.099 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 => /127.0.0.1:35910] FLUSH
06:38:58.099 [nioEventLoopGroup-577-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-577-1
06:38:58.099 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 :> /127.0.0.1:35910] INACTIVE
06:38:58.099 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7092ce06, /127.0.0.1:33420 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.101 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35910
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
06:38:58.101 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.101 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
06:38:58.101 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.102 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:58.102 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] FLUSH
06:38:58.103 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35910
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
06:38:58.103 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.103 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
06:38:58.104 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35910" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.104 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
06:38:58.104 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 => /127.0.0.1:35910] FLUSH
06:38:58.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:58.106 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 => /127.0.0.1:35910] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35910
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.106 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 => /127.0.0.1:35910] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.106 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 => /127.0.0.1:35910] FLUSH
06:38:58.106 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 => /127.0.0.1:35910] CLOSE()
06:38:58.106 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.106 [nioEventLoopGroup-578-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-578-1
06:38:58.107 [nioEventLoopGroup-564-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-1
06:38:58.107 [nioEventLoopGroup-564-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-2
06:38:58.107 [nioEventLoopGroup-564-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-5
06:38:58.107 [nioEventLoopGroup-564-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-3
06:38:58.107 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 :> /127.0.0.1:35910] INACTIVE
06:38:58.107 [nioEventLoopGroup-564-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-8
06:38:58.107 [nioEventLoopGroup-564-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-4
06:38:58.107 [nioEventLoopGroup-564-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-6
06:38:58.107 [nioEventLoopGroup-564-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-9
06:38:58.107 [nioEventLoopGroup-564-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-7
06:38:58.107 [nioEventLoopGroup-564-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-10
06:38:58.107 [nioEventLoopGroup-564-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-11
06:38:58.107 [nioEventLoopGroup-564-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-12
06:38:58.107 [nioEventLoopGroup-564-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-13
06:38:58.107 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3d42359, /127.0.0.1:33422 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.182 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 :> /127.0.0.1:36437] FLUSH
06:38:58.182 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 :> /127.0.0.1:36437] INACTIVE
06:38:58.182 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa00cc66c, /127.0.0.1:43494 :> /127.0.0.1:36437] UNREGISTERED
06:38:58.182 [nioEventLoopGroup-548-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-16
06:38:58.286 [nioEventLoopGroup-532-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-14
06:38:58.460 [MockServer thread for port: 43880] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43880
06:38:58.460 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.461 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.462 [nioEventLoopGroup-580-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.462 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.462 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 => /127.0.0.1:43880] FLUSH
06:38:58.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.462 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 => /127.0.0.1:43880] FLUSH
06:38:58.462 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 :> /127.0.0.1:43880] INACTIVE
06:38:58.462 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6e8dc4, /127.0.0.1:40174 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.462 [nioEventLoopGroup-581-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-581-1
06:38:58.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.464 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.465 [nioEventLoopGroup-580-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:58.465 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.465 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 => /127.0.0.1:43880] FLUSH
06:38:58.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.465 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 => /127.0.0.1:43880] FLUSH
06:38:58.465 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 :> /127.0.0.1:43880] INACTIVE
06:38:58.465 [nioEventLoopGroup-582-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-582-1
06:38:58.465 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c451f15, /127.0.0.1:40176 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.467 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.467 [nioEventLoopGroup-580-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:58.467 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.467 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 => /127.0.0.1:43880] FLUSH
06:38:58.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.467 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 => /127.0.0.1:43880] FLUSH
06:38:58.468 [nioEventLoopGroup-583-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-583-1
06:38:58.468 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 :> /127.0.0.1:43880] INACTIVE
06:38:58.468 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6515b1e1, /127.0.0.1:40178 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.468 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.469 [nioEventLoopGroup-580-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 => /127.0.0.1:43880] FLUSH
06:38:58.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 => /127.0.0.1:43880] FLUSH
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 :> /127.0.0.1:43880] INACTIVE
06:38:58.469 [nioEventLoopGroup-584-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-584-1
06:38:58.469 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fbdac5, /127.0.0.1:40180 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.471 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.472 [nioEventLoopGroup-580-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:58.472 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.472 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 => /127.0.0.1:43880] FLUSH
06:38:58.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.472 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 => /127.0.0.1:43880] FLUSH
06:38:58.472 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 :> /127.0.0.1:43880] INACTIVE
06:38:58.472 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fafd20, /127.0.0.1:40182 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.472 [nioEventLoopGroup-585-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-585-1
06:38:58.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.473 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.474 [nioEventLoopGroup-580-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:58.474 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.474 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 => /127.0.0.1:43880] FLUSH
06:38:58.474 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.474 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 => /127.0.0.1:43880] FLUSH
06:38:58.474 [nioEventLoopGroup-586-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-586-1
06:38:58.475 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 :> /127.0.0.1:43880] INACTIVE
06:38:58.475 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d3938f7, /127.0.0.1:40184 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.477 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.477 [nioEventLoopGroup-580-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:58.477 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.477 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 => /127.0.0.1:43880] FLUSH
06:38:58.477 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.478 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 => /127.0.0.1:43880] FLUSH
06:38:58.478 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 :> /127.0.0.1:43880] INACTIVE
06:38:58.478 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44a205fe, /127.0.0.1:40186 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.478 [nioEventLoopGroup-587-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-587-1
06:38:58.478 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.480 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.480 [nioEventLoopGroup-580-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:58.480 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.480 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 => /127.0.0.1:43880] FLUSH
06:38:58.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.481 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 => /127.0.0.1:43880] FLUSH
06:38:58.481 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 :> /127.0.0.1:43880] INACTIVE
06:38:58.481 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70b244d7, /127.0.0.1:40188 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.481 [nioEventLoopGroup-588-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-588-1
06:38:58.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.482 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.483 [nioEventLoopGroup-580-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:58.483 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.483 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 => /127.0.0.1:43880] FLUSH
06:38:58.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.483 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 => /127.0.0.1:43880] FLUSH
06:38:58.483 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 :> /127.0.0.1:43880] INACTIVE
06:38:58.483 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c38aba, /127.0.0.1:40190 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.483 [nioEventLoopGroup-589-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-589-1
06:38:58.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.485 [nioEventLoopGroup-580-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 => /127.0.0.1:43880] FLUSH
06:38:58.485 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.485 [nioEventLoopGroup-590-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-590-1
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 => /127.0.0.1:43880] FLUSH
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 :> /127.0.0.1:43880] INACTIVE
06:38:58.485 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8baef924, /127.0.0.1:40192 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.486 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.487 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.488 [nioEventLoopGroup-580-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:58.488 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.488 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 => /127.0.0.1:43880] FLUSH
06:38:58.488 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.488 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 => /127.0.0.1:43880] FLUSH
06:38:58.488 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 :> /127.0.0.1:43880] INACTIVE
06:38:58.488 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34b06248, /127.0.0.1:40194 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.488 [nioEventLoopGroup-591-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-591-1
06:38:58.488 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.489 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.490 [nioEventLoopGroup-580-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:58.490 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.490 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 => /127.0.0.1:43880] FLUSH
06:38:58.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.490 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 => /127.0.0.1:43880] FLUSH
06:38:58.490 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 :> /127.0.0.1:43880] INACTIVE
06:38:58.490 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40889c48, /127.0.0.1:40196 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.490 [nioEventLoopGroup-592-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-592-1
06:38:58.493 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.494 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 => /127.0.0.1:43880] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.495 [nioEventLoopGroup-580-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.495 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.495 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 => /127.0.0.1:43880] FLUSH
06:38:58.495 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.495 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 => /127.0.0.1:43880] FLUSH
06:38:58.495 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 :> /127.0.0.1:43880] INACTIVE
06:38:58.495 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a3e088a, /127.0.0.1:40198 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.495 [nioEventLoopGroup-593-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-593-1
06:38:58.505 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:43880
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.506 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.507 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.507 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.507 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.507 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.507 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.507 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.507 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] FLUSH
06:38:58.517 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:43880
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.518 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.519 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.520 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.520 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:58.520 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 => /127.0.0.1:43880] FLUSH
06:38:58.527 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:43880
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:58.527 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.527 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.528 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.529 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.529 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.529 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.529 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] FLUSH
06:38:58.529 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:43880
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
06:38:58.529 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.530 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.531 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.531 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43880" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.531 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:58.531 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 => /127.0.0.1:43880] FLUSH
06:38:58.532 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:58.533 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 => /127.0.0.1:43880] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43880
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.533 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 => /127.0.0.1:43880] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.533 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 => /127.0.0.1:43880] FLUSH
06:38:58.533 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 => /127.0.0.1:43880] CLOSE()
06:38:58.533 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.533 [nioEventLoopGroup-594-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-594-1
06:38:58.534 [nioEventLoopGroup-580-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-7
06:38:58.534 [nioEventLoopGroup-580-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-6
06:38:58.534 [nioEventLoopGroup-580-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-1
06:38:58.534 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 :> /127.0.0.1:43880] INACTIVE
06:38:58.534 [nioEventLoopGroup-580-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-2
06:38:58.534 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb7339c1, /127.0.0.1:40202 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.534 [nioEventLoopGroup-580-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-3
06:38:58.534 [nioEventLoopGroup-580-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-4
06:38:58.534 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 :> /127.0.0.1:43880] INACTIVE
06:38:58.534 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6a949a8, /127.0.0.1:40200 :> /127.0.0.1:43880] UNREGISTERED
06:38:58.534 [nioEventLoopGroup-580-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-5
06:38:58.534 [nioEventLoopGroup-580-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-8
06:38:58.534 [nioEventLoopGroup-580-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-9
06:38:58.534 [nioEventLoopGroup-580-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-10
06:38:58.534 [nioEventLoopGroup-580-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-11
06:38:58.534 [nioEventLoopGroup-580-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-12
06:38:58.534 [nioEventLoopGroup-580-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-13
06:38:58.607 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 :> /127.0.0.1:35910] FLUSH
06:38:58.607 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 :> /127.0.0.1:35910] INACTIVE
06:38:58.607 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdca8386a, /127.0.0.1:33424 :> /127.0.0.1:35910] UNREGISTERED
06:38:58.607 [nioEventLoopGroup-564-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-15
06:38:58.683 [nioEventLoopGroup-548-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-15
06:38:58.686 [nioEventLoopGroup-548-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-14
06:38:58.889 [MockServer thread for port: 42978] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42978
06:38:58.890 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.891 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.891 [nioEventLoopGroup-596-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.892 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.892 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 => /127.0.0.1:42978] FLUSH
06:38:58.892 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.892 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 => /127.0.0.1:42978] FLUSH
06:38:58.892 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 :> /127.0.0.1:42978] INACTIVE
06:38:58.892 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff041c38, /127.0.0.1:41876 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.892 [nioEventLoopGroup-597-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-597-1
06:38:58.893 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.894 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.895 [nioEventLoopGroup-596-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:58.895 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.895 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 => /127.0.0.1:42978] FLUSH
06:38:58.895 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.895 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 => /127.0.0.1:42978] FLUSH
06:38:58.895 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 :> /127.0.0.1:42978] INACTIVE
06:38:58.895 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe5a660b, /127.0.0.1:41878 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.895 [nioEventLoopGroup-598-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-598-1
06:38:58.896 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.897 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.898 [nioEventLoopGroup-596-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:58.898 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.898 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 => /127.0.0.1:42978] FLUSH
06:38:58.898 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.898 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 => /127.0.0.1:42978] FLUSH
06:38:58.899 [nioEventLoopGroup-599-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-599-1
06:38:58.899 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 :> /127.0.0.1:42978] INACTIVE
06:38:58.899 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9242dbb, /127.0.0.1:41880 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.899 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.901 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.901 [nioEventLoopGroup-596-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.902 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.902 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 => /127.0.0.1:42978] FLUSH
06:38:58.902 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.902 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 => /127.0.0.1:42978] FLUSH
06:38:58.902 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 :> /127.0.0.1:42978] INACTIVE
06:38:58.902 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf10ffcf, /127.0.0.1:41882 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.902 [nioEventLoopGroup-600-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-600-1
06:38:58.902 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.903 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.904 [nioEventLoopGroup-596-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:58.904 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.904 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 => /127.0.0.1:42978] FLUSH
06:38:58.904 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.904 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 => /127.0.0.1:42978] FLUSH
06:38:58.904 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 :> /127.0.0.1:42978] INACTIVE
06:38:58.904 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d267c56, /127.0.0.1:41884 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.904 [nioEventLoopGroup-601-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-601-1
06:38:58.904 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.905 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.906 [nioEventLoopGroup-596-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:58.906 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.906 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 => /127.0.0.1:42978] FLUSH
06:38:58.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.906 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 => /127.0.0.1:42978] FLUSH
06:38:58.906 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 :> /127.0.0.1:42978] INACTIVE
06:38:58.906 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x997b145e, /127.0.0.1:41886 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.906 [nioEventLoopGroup-602-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-602-1
06:38:58.907 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.908 [nioEventLoopGroup-596-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 => /127.0.0.1:42978] FLUSH
06:38:58.908 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 => /127.0.0.1:42978] FLUSH
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 :> /127.0.0.1:42978] INACTIVE
06:38:58.908 [nioEventLoopGroup-603-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-603-1
06:38:58.908 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79005ca6, /127.0.0.1:41888 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.909 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.910 [nioEventLoopGroup-596-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 => /127.0.0.1:42978] FLUSH
06:38:58.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 => /127.0.0.1:42978] FLUSH
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 :> /127.0.0.1:42978] INACTIVE
06:38:58.910 [nioEventLoopGroup-604-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-604-1
06:38:58.910 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c65f856, /127.0.0.1:41890 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.911 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.911 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.912 [nioEventLoopGroup-596-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:58.912 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.912 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 => /127.0.0.1:42978] FLUSH
06:38:58.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.912 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 => /127.0.0.1:42978] FLUSH
06:38:58.912 [nioEventLoopGroup-605-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-605-1
06:38:58.912 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 :> /127.0.0.1:42978] INACTIVE
06:38:58.912 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1e30fc2, /127.0.0.1:41892 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.913 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.913 [nioEventLoopGroup-596-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:58.914 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.914 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 => /127.0.0.1:42978] FLUSH
06:38:58.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.914 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 => /127.0.0.1:42978] FLUSH
06:38:58.914 [nioEventLoopGroup-606-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-606-1
06:38:58.914 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 :> /127.0.0.1:42978] INACTIVE
06:38:58.914 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03e7ba8a, /127.0.0.1:41894 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.915 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.915 [nioEventLoopGroup-596-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:58.915 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.915 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 => /127.0.0.1:42978] FLUSH
06:38:58.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.916 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 => /127.0.0.1:42978] FLUSH
06:38:58.916 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 :> /127.0.0.1:42978] INACTIVE
06:38:58.916 [nioEventLoopGroup-607-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-607-1
06:38:58.916 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1652898c, /127.0.0.1:41896 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.917 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.917 [nioEventLoopGroup-596-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:58.917 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.918 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 => /127.0.0.1:42978] FLUSH
06:38:58.918 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.918 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 => /127.0.0.1:42978] FLUSH
06:38:58.918 [nioEventLoopGroup-608-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-608-1
06:38:58.918 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 :> /127.0.0.1:42978] INACTIVE
06:38:58.918 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7f5c482, /127.0.0.1:41898 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.918 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:58.919 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 => /127.0.0.1:42978] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:58.920 [nioEventLoopGroup-596-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:58.920 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.920 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 => /127.0.0.1:42978] FLUSH
06:38:58.920 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.920 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 => /127.0.0.1:42978] FLUSH
06:38:58.920 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 :> /127.0.0.1:42978] INACTIVE
06:38:58.920 [nioEventLoopGroup-609-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-609-1
06:38:58.920 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67b1c84a, /127.0.0.1:41900 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.921 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 => /127.0.0.1:42978] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:42978
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.922 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.923 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.923 [nioEventLoopGroup-596-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.923 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.923 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 => /127.0.0.1:42978] FLUSH
06:38:58.926 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 => /127.0.0.1:42978] FLUSH
06:38:58.926 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 :> /127.0.0.1:42978] INACTIVE
06:38:58.926 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9e08e25, /127.0.0.1:41902 :> /127.0.0.1:42978] UNREGISTERED
06:38:58.926 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:42978
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.927 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.928 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.928 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:58.929 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] FLUSH
06:38:58.930 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:42978
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
06:38:58.930 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.930 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.930 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:58.930 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.930 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:58.931 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
06:38:58.932 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:42978" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:58.932 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
06:38:58.932 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 => /127.0.0.1:42978] FLUSH
06:38:58.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:58.933 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 => /127.0.0.1:42978] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42978
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:58.933 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 => /127.0.0.1:42978] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:58.933 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 => /127.0.0.1:42978] FLUSH
06:38:58.933 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 => /127.0.0.1:42978] CLOSE()
06:38:58.934 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:58.934 [nioEventLoopGroup-610-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-610-1
06:38:58.935 [nioEventLoopGroup-596-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-4
06:38:58.935 [nioEventLoopGroup-596-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-12
06:38:58.935 [nioEventLoopGroup-596-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-1
06:38:58.935 [nioEventLoopGroup-596-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-2
06:38:58.935 [nioEventLoopGroup-596-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-3
06:38:58.935 [nioEventLoopGroup-596-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-5
06:38:58.935 [nioEventLoopGroup-596-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-6
06:38:58.935 [nioEventLoopGroup-596-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-7
06:38:58.935 [nioEventLoopGroup-596-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-8
06:38:58.935 [nioEventLoopGroup-596-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-9
06:38:58.935 [nioEventLoopGroup-596-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-10
06:38:58.935 [nioEventLoopGroup-596-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-11
06:38:58.935 [nioEventLoopGroup-596-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-13
06:38:58.935 [nioEventLoopGroup-596-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-14
06:38:58.935 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 :> /127.0.0.1:42978] INACTIVE
06:38:58.935 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a849174, /127.0.0.1:41904 :> /127.0.0.1:42978] UNREGISTERED
06:38:59.034 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 :> /127.0.0.1:43880] FLUSH
06:38:59.034 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 :> /127.0.0.1:43880] INACTIVE
06:38:59.034 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4eea3c3d, /127.0.0.1:40204 :> /127.0.0.1:43880] UNREGISTERED
06:38:59.034 [nioEventLoopGroup-580-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-16
06:38:59.108 [nioEventLoopGroup-564-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-14
06:38:59.286 [MockServer thread for port: 43419] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43419
06:38:59.286 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.288 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.288 [nioEventLoopGroup-612-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.288 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.288 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 => /127.0.0.1:43419] FLUSH
06:38:59.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.289 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 => /127.0.0.1:43419] FLUSH
06:38:59.289 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 :> /127.0.0.1:43419] INACTIVE
06:38:59.289 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9438982f, /127.0.0.1:44480 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.289 [nioEventLoopGroup-613-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-613-1
06:38:59.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.290 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.291 [nioEventLoopGroup-612-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:59.291 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.291 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 => /127.0.0.1:43419] FLUSH
06:38:59.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.291 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 => /127.0.0.1:43419] FLUSH
06:38:59.291 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 :> /127.0.0.1:43419] INACTIVE
06:38:59.291 [nioEventLoopGroup-614-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-614-1
06:38:59.291 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc21f9188, /127.0.0.1:44482 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.292 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.293 [nioEventLoopGroup-612-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 => /127.0.0.1:43419] FLUSH
06:38:59.293 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 => /127.0.0.1:43419] FLUSH
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 :> /127.0.0.1:43419] INACTIVE
06:38:59.293 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x499f4263, /127.0.0.1:44484 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.293 [nioEventLoopGroup-615-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-615-1
06:38:59.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.295 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.295 [nioEventLoopGroup-612-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.295 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.295 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 => /127.0.0.1:43419] FLUSH
06:38:59.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.295 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 => /127.0.0.1:43419] FLUSH
06:38:59.295 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 :> /127.0.0.1:43419] INACTIVE
06:38:59.295 [nioEventLoopGroup-616-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-616-1
06:38:59.296 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdbe951f, /127.0.0.1:44486 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.296 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.297 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.297 [nioEventLoopGroup-612-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:59.297 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.297 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 => /127.0.0.1:43419] FLUSH
06:38:59.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.298 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 => /127.0.0.1:43419] FLUSH
06:38:59.298 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 :> /127.0.0.1:43419] INACTIVE
06:38:59.298 [nioEventLoopGroup-617-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-617-1
06:38:59.298 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb8f18b1, /127.0.0.1:44488 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.299 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.300 [nioEventLoopGroup-612-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:59.300 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.300 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 => /127.0.0.1:43419] FLUSH
06:38:59.300 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.300 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 => /127.0.0.1:43419] FLUSH
06:38:59.300 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 :> /127.0.0.1:43419] INACTIVE
06:38:59.300 [nioEventLoopGroup-618-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-618-1
06:38:59.300 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85cd2d60, /127.0.0.1:44490 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.300 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.301 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.302 [nioEventLoopGroup-612-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:59.302 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.302 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 => /127.0.0.1:43419] FLUSH
06:38:59.302 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.302 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 => /127.0.0.1:43419] FLUSH
06:38:59.302 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 :> /127.0.0.1:43419] INACTIVE
06:38:59.302 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11dcc03, /127.0.0.1:44492 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.302 [nioEventLoopGroup-619-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-619-1
06:38:59.302 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.304 [nioEventLoopGroup-612-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 => /127.0.0.1:43419] FLUSH
06:38:59.304 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 => /127.0.0.1:43419] FLUSH
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 :> /127.0.0.1:43419] INACTIVE
06:38:59.304 [nioEventLoopGroup-620-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-620-1
06:38:59.304 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bd98c7c, /127.0.0.1:44494 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.305 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.307 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.307 [nioEventLoopGroup-612-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:59.307 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.307 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 => /127.0.0.1:43419] FLUSH
06:38:59.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.308 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 => /127.0.0.1:43419] FLUSH
06:38:59.308 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 :> /127.0.0.1:43419] INACTIVE
06:38:59.308 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x251f518c, /127.0.0.1:44496 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.308 [nioEventLoopGroup-621-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-621-1
06:38:59.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.310 [nioEventLoopGroup-612-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 => /127.0.0.1:43419] FLUSH
06:38:59.310 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 => /127.0.0.1:43419] FLUSH
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 :> /127.0.0.1:43419] INACTIVE
06:38:59.310 [nioEventLoopGroup-622-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-622-1
06:38:59.310 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc59ec32e, /127.0.0.1:44498 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.311 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.312 [nioEventLoopGroup-612-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 => /127.0.0.1:43419] FLUSH
06:38:59.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 => /127.0.0.1:43419] FLUSH
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 :> /127.0.0.1:43419] INACTIVE
06:38:59.312 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6b8561c, /127.0.0.1:44500 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.312 [nioEventLoopGroup-623-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-623-1
06:38:59.313 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.314 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.314 [nioEventLoopGroup-612-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:59.314 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.314 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 => /127.0.0.1:43419] FLUSH
06:38:59.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.315 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 => /127.0.0.1:43419] FLUSH
06:38:59.315 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 :> /127.0.0.1:43419] INACTIVE
06:38:59.315 [nioEventLoopGroup-624-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-624-1
06:38:59.315 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71175630, /127.0.0.1:44502 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.316 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 => /127.0.0.1:43419] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.317 [nioEventLoopGroup-612-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.317 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.317 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 => /127.0.0.1:43419] FLUSH
06:38:59.317 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.317 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 => /127.0.0.1:43419] FLUSH
06:38:59.317 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 :> /127.0.0.1:43419] INACTIVE
06:38:59.317 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5412b5, /127.0.0.1:44504 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.317 [nioEventLoopGroup-625-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-625-1
06:38:59.324 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1f36f0, /127.0.0.1:44506 => /127.0.0.1:43419] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:43419
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:59.324 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.324 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.324 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:59.324 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.325 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.325 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.325 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
06:38:59.325 [nioEventLoopGroup-612-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:59.325 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1f36f0, /127.0.0.1:44506 => /127.0.0.1:43419] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
06:38:59.325 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1f36f0, /127.0.0.1:44506 => /127.0.0.1:43419] FLUSH
06:38:59.338 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb94a565f, /127.0.0.1:44508 => /127.0.0.1:43419] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:43419
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.338 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
06:38:59.339 [nioEventLoopGroup-612-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43419" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:59.339 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb94a565f, /127.0.0.1:44508 => /127.0.0.1:43419] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
06:38:59.339 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb94a565f, /127.0.0.1:44508 => /127.0.0.1:43419] FLUSH
06:38:59.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:59.341 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 => /127.0.0.1:43419] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43419
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:59.341 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 => /127.0.0.1:43419] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.341 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 => /127.0.0.1:43419] FLUSH
06:38:59.341 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 => /127.0.0.1:43419] CLOSE()
06:38:59.342 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.342 [nioEventLoopGroup-626-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-626-1
06:38:59.342 [nioEventLoopGroup-612-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-2
06:38:59.342 [nioEventLoopGroup-612-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-1
06:38:59.342 [nioEventLoopGroup-612-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-4
06:38:59.342 [nioEventLoopGroup-612-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-6
06:38:59.342 [nioEventLoopGroup-612-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-3
06:38:59.342 [nioEventLoopGroup-612-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-7
06:38:59.342 [nioEventLoopGroup-612-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-11
06:38:59.342 [nioEventLoopGroup-612-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-5
06:38:59.342 [nioEventLoopGroup-612-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-9
06:38:59.342 [nioEventLoopGroup-612-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-8
06:38:59.343 [nioEventLoopGroup-612-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-10
06:38:59.343 [nioEventLoopGroup-612-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-12
06:38:59.343 [nioEventLoopGroup-612-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-13
06:38:59.343 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1f36f0, /127.0.0.1:44506 :> /127.0.0.1:43419] INACTIVE
06:38:59.343 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1f36f0, /127.0.0.1:44506 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.343 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb94a565f, /127.0.0.1:44508 :> /127.0.0.1:43419] INACTIVE
06:38:59.343 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb94a565f, /127.0.0.1:44508 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.435 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 :> /127.0.0.1:42978] FLUSH
06:38:59.435 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 :> /127.0.0.1:42978] INACTIVE
06:38:59.435 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x002a58b4, /127.0.0.1:41906 :> /127.0.0.1:42978] UNREGISTERED
06:38:59.435 [nioEventLoopGroup-596-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-16
06:38:59.535 [nioEventLoopGroup-580-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-15
06:38:59.535 [nioEventLoopGroup-580-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-14
06:38:59.717 [MockServer thread for port: 36346] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36346
06:38:59.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.719 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.719 [nioEventLoopGroup-628-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.719 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.719 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 => /127.0.0.1:36346] FLUSH
06:38:59.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.720 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 => /127.0.0.1:36346] FLUSH
06:38:59.720 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 :> /127.0.0.1:36346] INACTIVE
06:38:59.720 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x780004f4, /127.0.0.1:50984 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.720 [nioEventLoopGroup-629-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-629-1
06:38:59.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.721 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.722 [nioEventLoopGroup-628-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:38:59.722 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.722 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 => /127.0.0.1:36346] FLUSH
06:38:59.723 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.723 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 => /127.0.0.1:36346] FLUSH
06:38:59.723 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 :> /127.0.0.1:36346] INACTIVE
06:38:59.723 [nioEventLoopGroup-630-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-630-1
06:38:59.723 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9bd2a3, /127.0.0.1:50986 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.726 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.727 [nioEventLoopGroup-628-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:38:59.727 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.727 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 => /127.0.0.1:36346] FLUSH
06:38:59.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.727 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 => /127.0.0.1:36346] FLUSH
06:38:59.727 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 :> /127.0.0.1:36346] INACTIVE
06:38:59.727 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f694bc, /127.0.0.1:50988 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.727 [nioEventLoopGroup-631-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-631-1
06:38:59.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.730 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.730 [nioEventLoopGroup-628-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.730 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.730 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 => /127.0.0.1:36346] FLUSH
06:38:59.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.730 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 => /127.0.0.1:36346] FLUSH
06:38:59.731 [nioEventLoopGroup-632-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-632-1
06:38:59.731 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 :> /127.0.0.1:36346] INACTIVE
06:38:59.731 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22179ea4, /127.0.0.1:50990 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.732 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.733 [nioEventLoopGroup-628-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:38:59.733 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.733 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 => /127.0.0.1:36346] FLUSH
06:38:59.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.733 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 => /127.0.0.1:36346] FLUSH
06:38:59.733 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 :> /127.0.0.1:36346] INACTIVE
06:38:59.733 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c739123, /127.0.0.1:50992 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.733 [nioEventLoopGroup-633-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-633-1
06:38:59.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.737 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.737 [nioEventLoopGroup-628-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:38:59.738 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.738 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 => /127.0.0.1:36346] FLUSH
06:38:59.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.738 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 => /127.0.0.1:36346] FLUSH
06:38:59.738 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 :> /127.0.0.1:36346] INACTIVE
06:38:59.738 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25cf0d70, /127.0.0.1:50994 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.738 [nioEventLoopGroup-634-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-634-1
06:38:59.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.740 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.740 [nioEventLoopGroup-628-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:38:59.740 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.740 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 => /127.0.0.1:36346] FLUSH
06:38:59.740 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.741 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 => /127.0.0.1:36346] FLUSH
06:38:59.741 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 :> /127.0.0.1:36346] INACTIVE
06:38:59.741 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f4cd44, /127.0.0.1:50996 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.741 [nioEventLoopGroup-635-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-635-1
06:38:59.741 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.743 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.743 [nioEventLoopGroup-628-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:38:59.743 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.744 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 => /127.0.0.1:36346] FLUSH
06:38:59.744 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.744 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 => /127.0.0.1:36346] FLUSH
06:38:59.744 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 :> /127.0.0.1:36346] INACTIVE
06:38:59.744 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47723257, /127.0.0.1:50998 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.744 [nioEventLoopGroup-636-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-636-1
06:38:59.744 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.746 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.746 [nioEventLoopGroup-628-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:38:59.746 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.746 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 => /127.0.0.1:36346] FLUSH
06:38:59.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.746 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 => /127.0.0.1:36346] FLUSH
06:38:59.746 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 :> /127.0.0.1:36346] INACTIVE
06:38:59.746 [nioEventLoopGroup-637-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-637-1
06:38:59.747 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa804e9e9, /127.0.0.1:51000 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.748 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.748 [nioEventLoopGroup-628-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:38:59.749 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.749 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 => /127.0.0.1:36346] FLUSH
06:38:59.749 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.749 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 => /127.0.0.1:36346] FLUSH
06:38:59.749 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 :> /127.0.0.1:36346] INACTIVE
06:38:59.749 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d27548, /127.0.0.1:51002 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.749 [nioEventLoopGroup-638-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-638-1
06:38:59.749 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.751 [nioEventLoopGroup-628-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 => /127.0.0.1:36346] FLUSH
06:38:59.751 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 => /127.0.0.1:36346] FLUSH
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 :> /127.0.0.1:36346] INACTIVE
06:38:59.751 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4c05675, /127.0.0.1:51004 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.751 [nioEventLoopGroup-639-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-639-1
06:38:59.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.753 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.754 [nioEventLoopGroup-628-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:38:59.754 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.754 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 => /127.0.0.1:36346] FLUSH
06:38:59.754 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.754 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 => /127.0.0.1:36346] FLUSH
06:38:59.754 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 :> /127.0.0.1:36346] INACTIVE
06:38:59.754 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f8d852, /127.0.0.1:51006 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.754 [nioEventLoopGroup-640-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-640-1
06:38:59.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:38:59.756 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 => /127.0.0.1:36346] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:38:59.756 [nioEventLoopGroup-628-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:38:59.757 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.757 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 => /127.0.0.1:36346] FLUSH
06:38:59.757 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.757 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 => /127.0.0.1:36346] FLUSH
06:38:59.757 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 :> /127.0.0.1:36346] INACTIVE
06:38:59.757 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe72efc04, /127.0.0.1:51008 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.757 [nioEventLoopGroup-641-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-641-1
06:38:59.760 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36346
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
06:38:59.761 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:59.761 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
06:38:59.762 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] FLUSH
06:38:59.767 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36346
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
06:38:59.767 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
06:38:59.768 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36346" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
06:38:59.768 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
06:38:59.768 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 => /127.0.0.1:36346] FLUSH
06:38:59.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:38:59.769 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 => /127.0.0.1:36346] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36346
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:38:59.770 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 => /127.0.0.1:36346] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:38:59.770 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 => /127.0.0.1:36346] FLUSH
06:38:59.770 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 => /127.0.0.1:36346] CLOSE()
06:38:59.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:38:59.770 [nioEventLoopGroup-642-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-642-1
06:38:59.771 [nioEventLoopGroup-628-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-1
06:38:59.771 [nioEventLoopGroup-628-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-3
06:38:59.771 [nioEventLoopGroup-628-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-7
06:38:59.771 [nioEventLoopGroup-628-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-2
06:38:59.771 [nioEventLoopGroup-628-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-4
06:38:59.771 [nioEventLoopGroup-628-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-6
06:38:59.771 [nioEventLoopGroup-628-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-5
06:38:59.771 [nioEventLoopGroup-628-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-8
06:38:59.771 [nioEventLoopGroup-628-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-9
06:38:59.771 [nioEventLoopGroup-628-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-10
06:38:59.771 [nioEventLoopGroup-628-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-11
06:38:59.771 [nioEventLoopGroup-628-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-12
06:38:59.771 [nioEventLoopGroup-628-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-13
06:38:59.771 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 :> /127.0.0.1:36346] INACTIVE
06:38:59.771 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe11c9168, /127.0.0.1:51010 :> /127.0.0.1:36346] UNREGISTERED
06:38:59.843 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 :> /127.0.0.1:43419] FLUSH
06:38:59.843 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 :> /127.0.0.1:43419] INACTIVE
06:38:59.843 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6701383, /127.0.0.1:44510 :> /127.0.0.1:43419] UNREGISTERED
06:38:59.843 [nioEventLoopGroup-612-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-16
06:38:59.936 [nioEventLoopGroup-596-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-15
06:39:00.122 [MockServer thread for port: 44007] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44007
06:39:00.123 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.124 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.125 [nioEventLoopGroup-644-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:00.125 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.125 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 => /127.0.0.1:44007] FLUSH
06:39:00.125 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.125 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 => /127.0.0.1:44007] FLUSH
06:39:00.125 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 :> /127.0.0.1:44007] INACTIVE
06:39:00.125 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8060009e, /127.0.0.1:50840 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.125 [nioEventLoopGroup-645-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-645-1
06:39:00.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.127 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.127 [nioEventLoopGroup-644-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:39:00.127 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.127 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 => /127.0.0.1:44007] FLUSH
06:39:00.128 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.128 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 => /127.0.0.1:44007] FLUSH
06:39:00.128 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 :> /127.0.0.1:44007] INACTIVE
06:39:00.128 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x967a35bb, /127.0.0.1:50842 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.128 [nioEventLoopGroup-646-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-646-1
06:39:00.128 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.129 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.130 [nioEventLoopGroup-644-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:39:00.130 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.130 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 => /127.0.0.1:44007] FLUSH
06:39:00.130 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.130 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 => /127.0.0.1:44007] FLUSH
06:39:00.130 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 :> /127.0.0.1:44007] INACTIVE
06:39:00.130 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff8049a5, /127.0.0.1:50844 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.130 [nioEventLoopGroup-647-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-647-1
06:39:00.131 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.132 [nioEventLoopGroup-644-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 => /127.0.0.1:44007] FLUSH
06:39:00.132 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 => /127.0.0.1:44007] FLUSH
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 :> /127.0.0.1:44007] INACTIVE
06:39:00.132 [nioEventLoopGroup-648-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-648-1
06:39:00.132 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e8ce25d, /127.0.0.1:50846 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.133 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.134 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.135 [nioEventLoopGroup-644-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:39:00.135 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.135 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 => /127.0.0.1:44007] FLUSH
06:39:00.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.135 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 => /127.0.0.1:44007] FLUSH
06:39:00.135 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 :> /127.0.0.1:44007] INACTIVE
06:39:00.135 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890ef851, /127.0.0.1:50848 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.135 [nioEventLoopGroup-649-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-649-1
06:39:00.136 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.138 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.139 [nioEventLoopGroup-644-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:39:00.139 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.139 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 => /127.0.0.1:44007] FLUSH
06:39:00.139 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.139 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 => /127.0.0.1:44007] FLUSH
06:39:00.139 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 :> /127.0.0.1:44007] INACTIVE
06:39:00.139 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fa543aa, /127.0.0.1:50850 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.139 [nioEventLoopGroup-650-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-650-1
06:39:00.140 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.143 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.144 [nioEventLoopGroup-644-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:39:00.144 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.144 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 => /127.0.0.1:44007] FLUSH
06:39:00.144 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.144 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 => /127.0.0.1:44007] FLUSH
06:39:00.144 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 :> /127.0.0.1:44007] INACTIVE
06:39:00.144 [nioEventLoopGroup-651-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-651-1
06:39:00.145 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.146 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fec613, /127.0.0.1:50852 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.147 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.148 [nioEventLoopGroup-644-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:39:00.148 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.148 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 => /127.0.0.1:44007] FLUSH
06:39:00.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.148 [nioEventLoopGroup-652-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-652-1
06:39:00.148 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 => /127.0.0.1:44007] FLUSH
06:39:00.148 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 :> /127.0.0.1:44007] INACTIVE
06:39:00.148 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x335162c1, /127.0.0.1:50854 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.150 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.151 [nioEventLoopGroup-644-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:39:00.151 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.151 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 => /127.0.0.1:44007] FLUSH
06:39:00.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.151 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 => /127.0.0.1:44007] FLUSH
06:39:00.151 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 :> /127.0.0.1:44007] INACTIVE
06:39:00.151 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe44a3284, /127.0.0.1:50856 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.151 [nioEventLoopGroup-653-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-653-1
06:39:00.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.153 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.153 [nioEventLoopGroup-644-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:39:00.154 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.154 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 => /127.0.0.1:44007] FLUSH
06:39:00.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.154 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 => /127.0.0.1:44007] FLUSH
06:39:00.154 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 :> /127.0.0.1:44007] INACTIVE
06:39:00.154 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fa4f823, /127.0.0.1:50858 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.154 [nioEventLoopGroup-654-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-654-1
06:39:00.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.155 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.156 [nioEventLoopGroup-644-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:39:00.156 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.156 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 => /127.0.0.1:44007] FLUSH
06:39:00.156 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.156 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 => /127.0.0.1:44007] FLUSH
06:39:00.156 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 :> /127.0.0.1:44007] INACTIVE
06:39:00.156 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63f25961, /127.0.0.1:50860 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.156 [nioEventLoopGroup-655-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-655-1
06:39:00.156 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.157 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.158 [nioEventLoopGroup-644-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:39:00.158 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.158 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 => /127.0.0.1:44007] FLUSH
06:39:00.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.158 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 => /127.0.0.1:44007] FLUSH
06:39:00.158 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 :> /127.0.0.1:44007] INACTIVE
06:39:00.158 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f9b5b4e, /127.0.0.1:50862 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.158 [nioEventLoopGroup-656-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-656-1
06:39:00.159 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 => /127.0.0.1:44007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:00.160 [nioEventLoopGroup-644-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 => /127.0.0.1:44007] FLUSH
06:39:00.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 => /127.0.0.1:44007] FLUSH
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 :> /127.0.0.1:44007] INACTIVE
06:39:00.160 [nioEventLoopGroup-657-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-657-1
06:39:00.160 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6606a4d5, /127.0.0.1:50864 :> /127.0.0.1:44007] UNREGISTERED
06:39:00.271 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 :> /127.0.0.1:36346] FLUSH
06:39:00.271 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 :> /127.0.0.1:36346] INACTIVE
06:39:00.271 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8deaf6d0, /127.0.0.1:51012 :> /127.0.0.1:36346] UNREGISTERED
06:39:00.272 [nioEventLoopGroup-628-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-15
06:39:00.344 [nioEventLoopGroup-612-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-14
06:39:00.344 [nioEventLoopGroup-612-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-15
06:39:00.772 [nioEventLoopGroup-628-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-14
06:39:00.983 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:39:00.984 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 => /127.0.0.1:44007] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44007
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:39:00.984 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 => /127.0.0.1:44007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:00.985 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 => /127.0.0.1:44007] FLUSH
06:39:00.985 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 => /127.0.0.1:44007] CLOSE()
06:39:00.985 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:00.985 [nioEventLoopGroup-658-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-658-1
06:39:00.986 [nioEventLoopGroup-644-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-2
06:39:00.986 [nioEventLoopGroup-644-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-1
06:39:00.986 [nioEventLoopGroup-644-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-3
06:39:00.986 [nioEventLoopGroup-644-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-4
06:39:00.986 [nioEventLoopGroup-644-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-6
06:39:00.986 [nioEventLoopGroup-644-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-8
06:39:00.986 [nioEventLoopGroup-644-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-5
06:39:00.986 [nioEventLoopGroup-644-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-7
06:39:00.986 [nioEventLoopGroup-644-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-9
06:39:00.986 [nioEventLoopGroup-644-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-10
06:39:00.986 [nioEventLoopGroup-644-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-11
06:39:00.986 [nioEventLoopGroup-644-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-12
06:39:00.986 [nioEventLoopGroup-644-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-13
06:39:01.337 [MockServer thread for port: 40667] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40667
06:39:01.337 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.339 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.339 [nioEventLoopGroup-660-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:01.339 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.339 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 => /127.0.0.1:40667] FLUSH
06:39:01.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.340 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 => /127.0.0.1:40667] FLUSH
06:39:01.340 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 :> /127.0.0.1:40667] INACTIVE
06:39:01.340 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x719fd8a4, /127.0.0.1:60974 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.341 [nioEventLoopGroup-661-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-661-1
06:39:01.341 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.342 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.342 [nioEventLoopGroup-660-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
06:39:01.342 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.343 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 => /127.0.0.1:40667] FLUSH
06:39:01.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.343 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 => /127.0.0.1:40667] FLUSH
06:39:01.343 [nioEventLoopGroup-662-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-662-1
06:39:01.343 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 :> /127.0.0.1:40667] INACTIVE
06:39:01.343 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05951ff1, /127.0.0.1:60976 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.344 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.345 [nioEventLoopGroup-660-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
06:39:01.345 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.345 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 => /127.0.0.1:40667] FLUSH
06:39:01.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.345 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 => /127.0.0.1:40667] FLUSH
06:39:01.345 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 :> /127.0.0.1:40667] INACTIVE
06:39:01.345 [nioEventLoopGroup-663-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-663-1
06:39:01.345 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3109ca00, /127.0.0.1:60978 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.346 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.347 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.347 [nioEventLoopGroup-660-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:01.347 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.347 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 => /127.0.0.1:40667] FLUSH
06:39:01.348 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 => /127.0.0.1:40667] FLUSH
06:39:01.348 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.348 [nioEventLoopGroup-664-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-664-1
06:39:01.348 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 :> /127.0.0.1:40667] INACTIVE
06:39:01.348 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed86a15, /127.0.0.1:60980 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.348 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.349 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.350 [nioEventLoopGroup-660-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
06:39:01.350 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.350 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 => /127.0.0.1:40667] FLUSH
06:39:01.350 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.350 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 => /127.0.0.1:40667] FLUSH
06:39:01.350 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 :> /127.0.0.1:40667] INACTIVE
06:39:01.350 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x829e3b32, /127.0.0.1:60982 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.350 [nioEventLoopGroup-665-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-665-1
06:39:01.351 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.352 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.353 [nioEventLoopGroup-660-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
06:39:01.353 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.353 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 => /127.0.0.1:40667] FLUSH
06:39:01.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.353 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 => /127.0.0.1:40667] FLUSH
06:39:01.353 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 :> /127.0.0.1:40667] INACTIVE
06:39:01.353 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86403363, /127.0.0.1:60984 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.353 [nioEventLoopGroup-666-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-666-1
06:39:01.354 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.355 [nioEventLoopGroup-660-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 => /127.0.0.1:40667] FLUSH
06:39:01.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 => /127.0.0.1:40667] FLUSH
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 :> /127.0.0.1:40667] INACTIVE
06:39:01.355 [nioEventLoopGroup-667-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-667-1
06:39:01.355 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9facf1a4, /127.0.0.1:60986 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.356 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.357 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.357 [nioEventLoopGroup-660-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
06:39:01.358 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.358 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 => /127.0.0.1:40667] FLUSH
06:39:01.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.358 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 => /127.0.0.1:40667] FLUSH
06:39:01.358 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 :> /127.0.0.1:40667] INACTIVE
06:39:01.358 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3fe24dc, /127.0.0.1:60988 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.358 [nioEventLoopGroup-668-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-668-1
06:39:01.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.360 [nioEventLoopGroup-660-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
06:39:01.360 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.360 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 => /127.0.0.1:40667] FLUSH
06:39:01.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.360 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 => /127.0.0.1:40667] FLUSH
06:39:01.360 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 :> /127.0.0.1:40667] INACTIVE
06:39:01.360 [nioEventLoopGroup-669-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-669-1
06:39:01.360 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x705dc1c2, /127.0.0.1:60990 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.361 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.362 [nioEventLoopGroup-660-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
06:39:01.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 => /127.0.0.1:40667] FLUSH
06:39:01.362 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 => /127.0.0.1:40667] FLUSH
06:39:01.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 :> /127.0.0.1:40667] INACTIVE
06:39:01.362 [nioEventLoopGroup-670-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-670-1
06:39:01.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x203006b1, /127.0.0.1:60992 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.362 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.363 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.364 [nioEventLoopGroup-660-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
06:39:01.364 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.364 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 => /127.0.0.1:40667] FLUSH
06:39:01.364 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.364 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 => /127.0.0.1:40667] FLUSH
06:39:01.364 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 :> /127.0.0.1:40667] INACTIVE
06:39:01.364 [nioEventLoopGroup-671-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-671-1
06:39:01.364 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa16137a9, /127.0.0.1:60994 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.364 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.365 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.365 [nioEventLoopGroup-660-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
06:39:01.366 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.366 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 => /127.0.0.1:40667] FLUSH
06:39:01.366 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.366 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 => /127.0.0.1:40667] FLUSH
06:39:01.366 [nioEventLoopGroup-672-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-672-1
06:39:01.366 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 :> /127.0.0.1:40667] INACTIVE
06:39:01.366 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb26bfa18, /127.0.0.1:60996 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.366 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
06:39:01.368 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 => /127.0.0.1:40667] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
06:39:01.368 [nioEventLoopGroup-660-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
06:39:01.368 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.368 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 => /127.0.0.1:40667] FLUSH
06:39:01.368 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.368 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 => /127.0.0.1:40667] FLUSH
06:39:01.369 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 :> /127.0.0.1:40667] INACTIVE
06:39:01.369 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e36971e, /127.0.0.1:60998 :> /127.0.0.1:40667] UNREGISTERED
06:39:01.369 [nioEventLoopGroup-673-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-673-1
06:39:01.486 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 :> /127.0.0.1:44007] FLUSH
06:39:01.486 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 :> /127.0.0.1:44007] INACTIVE
06:39:01.486 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5b648aa, /127.0.0.1:50870 :> /127.0.0.1:44007] UNREGISTERED
06:39:01.486 [nioEventLoopGroup-644-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-14
06:39:01.651 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
06:39:01.652 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff5fc62, /127.0.0.1:32772 => /127.0.0.1:40667] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40667
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
06:39:01.652 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff5fc62, /127.0.0.1:32772 => /127.0.0.1:40667] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
06:39:01.652 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff5fc62, /127.0.0.1:32772 => /127.0.0.1:40667] FLUSH
06:39:01.652 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff5fc62, /127.0.0.1:32772 => /127.0.0.1:40667] CLOSE()
06:39:01.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
06:39:01.653 [nioEventLoopGroup-674-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-674-1
06:39:01.653 [nioEventLoopGroup-660-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-1
06:39:01.653 [nioEventLoopGroup-660-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-3
06:39:01.653 [nioEventLoopGroup-660-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-2